entity framework core code first apply migrations code example
Example 1: C# aspnet how to run a migration
dotnet ef database update
Example 2: enable migration in .net core
dotnet ef database update
dotnet ef database update
dotnet ef database update