ef migration commands code example
Example 1: ef migrations
PM> add-migration MyFirstMigration
PM> Update-Database
Example 2: how to remove last migration in ef core
* CLI
dotnet ef migrations remove
*Package Manager Console
PM> Remove-Migration
Example 3: entity framework migration
Update-Database
Example 4: add migration ef core
dotnet ef database update
Example 5: entity framework migration
dotnet ef migrations add InitialCreate
Example 6: ef rollback migration
//EF 6.4
//PM> Update-Database -TargetMigration:"NameOfSecondToLastMigration"