Robert Ross
Robert Ross

Reputation: 1189

Error in project after changing field in the model Entity Framework

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 wasUpdate-Databaseand after this step I gotThe 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

Answers (1)

tmaj
tmaj

Reputation: 35027

The answer is in the error you will get when you try to build the project.

Upvotes: 1

Related Questions