问题
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