Entity Framework Core automatische Migrationen

Gibt es irgendeinen code, um eine automatische migration in Entity Framework core code first im asp.net core Projekt?

Tue ich es einfach in MVC4/5 durch hinzufügen

Database.SetInitializer(new MigrateDatabaseToLatestVersion<AppDbContext, MyProject.Migrations.Configuration>());
public Configuration() {
          AutomaticMigrationsEnabled = true;
        }

Das spart Zeit, wenn Einheiten geändert

Es nennt sich Entity Framework Core 1.0, danke

InformationsquelleAutor Lapenkov Vladimir | 2016-09-16

Schreibe einen Kommentar