0

I'm working on a small tutorial app using ASP.NET and MVC 5. I was finding that the database wasn't updating when I changed my seed data. Also, I put a breakpoint in the initializer class, and never hit it. I figured, well if I delete the database, then it will just get made fresh like it did when I first created it. Wrong. It broke the project. Same thing happened to this person.

What do I do now? Surely there is a way to get VS to create a new database.

Community
  • 1
  • 1
abalter
  • 9,663
  • 17
  • 90
  • 145
  • Hmm maybe just create a new project and copy&paste the database generated for it? – miensol May 13 '15 at 05:22
  • I got: "System.NotSupportedException: Model compatibility cannot be checked because the database does not contain model metadata. Model compatibility can only be checked for databases created using Code First or Code First Migrations." The line cited is `return View(db.Students.ToList());` – abalter May 13 '15 at 05:52

0 Answers0