How to view the EF Code First Migrations changes before calling 'Update-Database'
-
17-04-2021 - |
Question
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?
Solution
Take a look at the link below and search for the section headed Generating an SQL Script.
Run the Update-Database –TargetDatabase:"database" –Script
command in Package Manager Console
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow