Entity framework 4.3 run migrations at application start

The best way should be using new MigrateDatabaseToLatestVersion initializer.

Database.SetInitializer<YourContext>(
    new MigrateDatabaseToLatestVersion<YourContext, YourMigrationsConfig>());
Database.Initialize(false);

Leave a Comment

deneme bonusu veren sitelerbahis casino