.NET and ASP.NET Core 10 · Entity Framework Core

Generate a SQL script

Write the SQL for all migrations to a file, for review or deployment.

dotnet ef migrations script -o migrate.sql

Official .NET and ASP.NET Core 10 documentation

More entity framework core commands

All entity framework core commands · .NET and ASP.NET Core 10 cheatsheet

Was this page helpful?