Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions AspNetIdentity2ExtensibleTemplate/App_Start/IdentityConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public Task SendAsync(IdentityMessage message)
// This is useful if you do not want to tear down the database each time you run the application.
// public class ApplicationDbInitializer : DropCreateDatabaseAlways<ApplicationDbContext>
// This example shows you how to create a new database if the Model changes
public class ApplicationDbInitializer : DropCreateDatabaseAlways<ApplicationDbContext>
public class ApplicationDbInitializer : DropCreateDatabaseIfModelChanges<ApplicationDbContext>
{
protected override void Seed(ApplicationDbContext context) {
InitializeIdentityForEF(context);
Expand Down Expand Up @@ -156,4 +156,4 @@ public static ApplicationSignInManager Create(IdentityFactoryOptions<Application
return new ApplicationSignInManager(context.GetUserManager<ApplicationUserManager>(), context.Authentication);
}
}
}
}