Last active
August 29, 2015 14:00
-
-
Save AlexArchive/11055316 to your computer and use it in GitHub Desktop.
EF Code First DatabaseInitializer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Database.SetInitializer(new DropCreateDatabaseAlways<ApplicationDbContext>()); | |
| Database.SetInitializer(new DropCreateDatabaseIfModelChanges<ApplicationDbContext>()); | |
| Database.SetInitializer(new CreateDatabaseIfNotExists<ApplicationDbContext>()); | |
| public class Doohickey : DropCreateDatabaseIfModelChanges<ApplicationDbContext> | |
| { | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment