Created
June 30, 2016 17:08
-
-
Save arman-hpp/11a43dd4c2eefb95c7b3521612839fcf to your computer and use it in GitHub Desktop.
Running & Scripting Migrations From Code
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
//Running & Scripting Migrations From Code | |
//https://romiller.com/2012/02/09/running-scripting-migrations-from-code/ | |
var configuration = new MyContextConfiguration(); | |
var migrator = new DbMigrator(configuration); | |
var scriptor = new MigratorScriptingDecorator(migrator); | |
string script = scriptor.ScriptUpdate(sourceMigration: null, targetMigration: null); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment