public partial class MyMigration {
public override void Up()
{
RenameTable("TableA", "TableB");
}
public override void Down()
{
}
}
某处...
{
...
if (condition) {
db.Migrate(new MyMigration);
} else {
//nothing todo
}
}