visual studio apply all migrations code example
Example 1: entity framework migration
Add-Migration InitialCreate
Example 2: enable migration in .net core
dotnet ef migrations add InitialCreate
Add-Migration InitialCreate
dotnet ef migrations add InitialCreate