Last post Jan 30, 2019 06:12 AM by Yuki Tao
Jan 29, 2019 12:04 PM|3v3rhart|LINK
If I have a problem updating database after a migration and get an error (below) trying to create a new migration to reverse the changes that prevented the database update...
Unable to generate an explicit migration because the following explicit migrations are pending: [201901281242341_ScheduleCalendarDate1]. Apply the pending explicit migrations before attempting to generate a new explicit migration.
...and want to eliminate the last migration, can I simply delete the last migration folder in the the migration folder under Solution Explorer?
Or, in other words, how do I eliminate the last migration?
Jan 30, 2019 06:12 AM|Yuki Tao|LINK
According to your descriptions,
I suggest you could try to right click [201901281242341_ScheduleCalendarDate1],and click 'Exclude From Project' ...
or you could try to comment the code you think is problematic according to your error messagae in Up() and Down() function in migration file.