pm add migration code example
Example 1: add migration ef core
dotnet ef database update
Example 2: package manager console add migration
add-migration MyFirstMigration
Update-Database
dotnet ef database update
add-migration MyFirstMigration
Update-Database