WARNING: If you cannot delete your database, DO NOT follow these steps!
I am using Visual Code (.net 2). Here's how I solved it:
First delete your database:
dotnet ef database drop
Then remove all migrations:
dotnet ef migrations remove
Run the same command until all !
Add the first migration:
dotnet ef migrations add InitialCreate
After executing the command indicated above, be sure to make changes to the new file generated, possibly to the Data / Migrations file: timestamp + InitialCreate, not the desing file .
Sample Image: Adding a New Column
After adding your matches, and everything will be agreed, save the project and run the following command:
dotnet ef database update
If everything is ok, your new column will be created.
Lat94 source share