Update-database -script in EF Core

Asked

Viewed 269 times

3

In EF6 I could run the "update-database -script" command from Migrations to see the script that would run in the database. How do I get this in EF Core?

1 answer

3


Utilize script-migration after rotating the Add-Migration, this way it will generate the file SQL for you.

You can also use the parameter Verbose next to the update-database to see the script that was executed in the console:

update-database -Verbose

Browser other questions tagged

You are not signed in. Login or sign up in order to post.