"dotnet ef migrations script InitialCreate.cs" code example
Example: generate sql from specific migration ef core
Script-Migration -From <PreviousMigration> -To <LastMigration>
Script-Migration -From <PreviousMigration> -To <LastMigration>