Exemplo n.º 1
0
 public static void Initialize()
 {
     Database.SetInitializer(new MigrateDatabaseToLatestVersion <ImageGalleryDbContext, Configuration>());
     ImageGalleryDbContext.Create().Database.Initialize(true);
 }