1

I dont know how to get rid off this error..on line 24

The model backing the 'ApplicationDbContext' context has changed since the database was created. Consider using Code First Migrations to update the database

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);
Rahul
  • 7
  • 2
  • 1
    Possible duplicate of [The model backing the 'ApplicationDbContext' context has changed since the database was created](http://stackoverflow.com/questions/22408608/the-model-backing-the-applicationdbcontext-context-has-changed-since-the-datab) – Divyang Desai Nov 06 '16 at 04:43
  • Have you used _Code First Migrations to update the database_? –  Nov 06 '16 at 04:43
  • No it didn't solve my error – Rahul Nov 06 '16 at 04:48

0 Answers0