I have a strange problem this morning.
I followed this turotial : http://www.asp.net/mvc/tutorials/getting-started-with-ef-using-mvc/creating-an-entity-framework-data-model-for-an-asp-net-mvc-application ...
... on how to implement code first in your projects. I did the same tutorial 2 weeks ago and everything worked great. Since then, I made some changes and upgraded to MVC 4, and now Code First has stop working.
I tried the same tutorials, with exact same step I did before in a MVC3 web app, Drop the database, re-re-recreated it, and the "Seed" method Or the "OnModelCreating" in the DAL don't seems to be called any more.
I have my Database.SetInitializer(new AppInitializer()); In my Application_Start(), which is called, but after that nothing happens.
Somebody knows why this could have stop working suddenly? MVC4?
Thank you!