It had the same problem, the only thing that helped me: reset the database to its initial empty state, delete all migrations and create a new one with the corresponding GUID:
Update-Database -TargetMigration:0
- Delete all migrations
Add-Migration InitialCreate
Update-Database
I agree that this is not the best solution, but it was acceptable for me, since I started the project a few hours before.
source share