实体框架6自动迁移产品

时间:2016-05-23 11:40:23

标签: c# asp.net-mvc entity-framework msbuild entity-framework-6

我使用MSBuild.exe和bat-files来构建生产解决方案。 我应该如何使用Entity Framework 6迁移生产数据库? 我认为使用此代码进行预测并不酷!

public Configuration()
{
    AutomaticMigrationsEnabled = true;
    AutomaticMigrationDataLossAllowed = true;
}

0 个答案:

没有答案