Created
August 22, 2017 08:43
-
-
Save Teddybiers/49a836035d6a495dec2f0594456d7d65 to your computer and use it in GitHub Desktop.
Run Migration with deployment
This file contains 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
protected void Application_Start() | |
{ | |
var dbConfig = new Migrations.Configuration(); | |
var migrator = new DbMigrator(dbConfig); | |
migrator.Update(); | |
} |
This file contains 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
<appSettings> | |
<add key="MigrateDatabaseToLatestVersion" value="true" /> | |
</appSettings> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment