TFS VNext 构建和 Entity Framework 迁移 - Visual Studio 团队服务(Visual Studio 在线)
TFS VNext Build and Entity Framework Migrations - Visual Studio Team Services (was Visual Studio Online)
我正在使用 Entity Framework 构建 .Net 应用程序。
我有 TFS vNext Builds 设置,我正在自动发布到 Azure Web 应用程序。
我想添加一个构建任务来自动执行我的 entity framework 更改。
我首先使用代码并启用了迁移,因此我需要一个任务来 运行 我在构建期间进行迁移以进行任何数据库架构更改,并播种需要 added/updated 到数据库。
基本上我想得到 ReadyRoll 使用的过程
http://www.red-gate.com/products/sql-development/readyroll/
无需为每个许可证花费 350 美元。
您可以安装EntityFramework nuget package to your project. And then restore the nuget package and call "migrate.exe" in the package folder to run the migration. Refer to this question for details:
我正在使用 Entity Framework 构建 .Net 应用程序。
我有 TFS vNext Builds 设置,我正在自动发布到 Azure Web 应用程序。
我想添加一个构建任务来自动执行我的 entity framework 更改。
我首先使用代码并启用了迁移,因此我需要一个任务来 运行 我在构建期间进行迁移以进行任何数据库架构更改,并播种需要 added/updated 到数据库。
基本上我想得到 ReadyRoll 使用的过程 http://www.red-gate.com/products/sql-development/readyroll/ 无需为每个许可证花费 350 美元。
您可以安装EntityFramework nuget package to your project. And then restore the nuget package and call "migrate.exe" in the package folder to run the migration. Refer to this question for details: