Team
Update-Database -Verbose
print in the console sql code for migration, but another way:
Update-Database -Script
which open another file in Visual Studio with sql code.
This is the only way to get sql migration code. You cannot get sql migration code in debugging because the migration is performed as a power shell and because it does not start the project.
Editing:
You cannot migrate or make your debut because the migration is executed as a shell command.
You can get Entity Framework> Migration source code at entityframework.codeplex.com
MayogaX
source share