Package Manager Console 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