How to run Code-First Migrations from a psake build?

一曲冷凌霜 提交于 2019-11-30 09:58:12
Keith Hill

The problem with importing the module into a PowerShell console is that I believe the module expects to run in a context where it has a Visual Studio DTE object available. That environment is the NuGet Package Manager Console. This issue has been brought up before. Check out this blog post and this SO question.

This blog post shows how to write code that does migrations.

Der_Meister

Use migrate.exe from EntityFramework NuGet package.

https://stackoverflow.com/a/14139229/991267

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!