how to add migrariton code example Example 1: entity framework migration Update-Database Example 2: enable migration in .net core dotnet ef database update