JetBrains Rider
 
2025.1
Get JetBrains Rider

Entity Framework Core: Generate SQL Script

Last modified: 04 December 2024

This command helps you generate SQL scripts that you can use to deploy migrations to a production environment. To deploy migrations to a local database, you can also use the Update Database command.

Under the hood, JetBrains Rider will apply the dotnet ef migrations script command with the corresponding arguments. Make sure that dotnet ef global tool is installed on your machine.

Below is the list of options for the Generate SQL Script command.