'/'应用程序中的服务器错误(模型备份ApplicationDbContext)

时间:2016-11-06 04:41:05

标签: asp.net-mvc

我不知道如何摆脱这个错误......第24行

  

自创建数据库以来,支持'ApplicationDbContext'上下文的模型已更改。考虑使用Code First Migrations来更新数据库

Line 22:         public ViewResult Index()
Line 23:         {
Line 24:             var customers = _context.Customers.Include(c => c.MembershipType).ToList();
Line 25: 
Line 26:             return View(customers);

0 个答案:

没有答案