command to run migration in .net core 2.0 code example Example 1: add migration ef core dotnet ef database update Example 2: ef core update database command update database