The model that supports the "WeShopDb" context has been changed after the database is created. Please consider using Code First to migrate and update the database,
After the EF framework is set up, a field is added to one of the tables. This error is always reported during the running of the program. I am depressed for a late self-study. However, by searching for information, I search for answers online, I have found several solutions to solve this problem. I will share it with you and hope it will help you.
Method 1. add this sentence to the Application_Start () method in the asax file, then clean up the solution and run it again. However, the Entity Framework 6.0.0 must be upgraded to version 6.1.0 or later.
Method 2: add the Application_Start () method in the Global. asax file, clear the solution, and run it again.
Method 3: delete the table that detects model changes in the database.
Method 4: If the problem persists, check the UI Layer of your project.