.net add migration code example
Example 1: add migration ef core
dotnet ef migrations add InitialCreate
Example 2: generate sql from specific migration ef core
Script-Migration -From <PreviousMigration> -To <LastMigration>
dotnet ef migrations add InitialCreate
Script-Migration -From <PreviousMigration> -To <LastMigration>