Reputation: 1189
First, I added an extra field to my project, then I typed Enable-Migrations
in the console, which executed successfully, then I typed add-migration
myprojectname. The last step was
Update-Databaseand after this step I got
The project 'class_project' failed to build.` in the console.
The error is :
Severity Code Description Project File Line Suppression State
Error CS0426 The type name 'Models' does not exist in the type 'class_project' class_project C:\Users\internship\documents\visual studio 2015\Projects\class_project\class_project\Migrations\Configuration.cs 16 Active
I really have no idea why am I getting this, since i followed some clear instructions.
Can someone help, please?
Upvotes: 0
Views: 359
Reputation: 35027
The answer is in the error you will get when you try to build the project.
Upvotes: 1