Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
.NET EF Core - How to generate idempotent SQL scripts from migrations
## To generate all the scripts
## From Blank Database Till Latest Migration Created
## --idempotent option is to generate idempotent SQL scripts
dotnet ef migrations script --output all_scripts.sql --idempotent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment