How to view the EF Code First Migrations changes before calling 'Update-Database'

被刻印的时光 ゝ 提交于 2019-12-07 19:21:19

问题


I am using Code First Migrations Beta 1.

I would like to see the Migrations and SQL that will run before I actually call 'Update-Database' on the Package Manager Console.

Is there a command to get this information on the Package Manager Console?


回答1:


Take a look at the link below and search for the section headed Generating an SQL Script.

ADO.Net Team Blog

Run the Update-Database –TargetDatabase:"database" –Script command in Package Manager Console



来源:https://stackoverflow.com/questions/8898762/how-to-view-the-ef-code-first-migrations-changes-before-calling-update-database

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