Asp.net mvc &引用;自创建数据库以来,支持上下文的模型已更改;错误
请帮助我如何解决MVC模型中的以下错误Asp.net mvc &引用;自创建数据库以来,支持上下文的模型已更改;错误,asp.net-mvc,c#-4.0,Asp.net Mvc,C# 4.0,请帮助我如何解决MVC模型中的以下错误 The model backing the 'ApplicationDbContext' context has changed since the database was created. Consider using Code First Migrations to update the database (http://go.microsoft.com/fwlink/?LinkId=238269). 此错误是由于您已在数据库中更改,而不是在App
The model backing the 'ApplicationDbContext' context has changed since the database was created. Consider using Code First Migrations to update the database (http://go.microsoft.com/fwlink/?LinkId=238269).
此错误是由于您已在数据库中更改,而不是在ApplicationDbContext中更改而导致的
要解决此错误,请执行以下操作:
转到Nuget Package manager控制台并启动更新数据库命令
在此之后,重建项目
希望这能奏效