If you want to completely disable migration:
stack overflow
However, I was better off preserving the inclusion of the first code migrations, but use the -Script option -Script that EF creates a script database change for me, which I can apply to each database (development, QA, Production) manually
Update-Database -Script -ProjectName MyProject -StartupProjectName MyProject
That way, EF will create a script change for me, and I still have full control over the changes applied. I use change scripts like any other source code.
Eric J. Feb 01 '13 at 20:02 2013-02-01 20:02
source share