.net core code first migrations code example
Example 1: ef migrations
PM> add-migration MyFirstMigration
PM> Update-Database
Example 2: enable migration in .net core
dotnet ef database update
PM> add-migration MyFirstMigration
PM> Update-Database
dotnet ef database update