private void button6_Click(object sender, EventArgs e) { var configuration = new Migrations.Configuration(); var migrator = new DbMigrator(configuration); migrator.Update("AddPostClass"); }
private void button1_Click(object sender, EventArgs e) { //1. The migrations are run even we do not run the context. Seems that this approach fits better to installers. var configuration = new Migrations.Configuration(); var migrator = new DbMigrator(configuration); migrator.Update(); }