"update-database" Entity framework code first doesn't add tables anymore
entity-framework, entity-framework-5
Solution
as I told you deleting the database context didn't fix my problem. This is how I fixed the issue. I dropped table __MigrationHistory using sql command and run the update-database -verbose again.
Apparently something was wrong with this automatic created table.
Problem
I'm using Entity Frame work 5 code first in my website. Every thing was fine and I've been using update-database -verbose to update database with new data or new structure and model, however; out of no where update-database has stopped working and it doesn't track changes in model and new tables anymore. I have searched over internet and some say that I have to delete database context and recreate it to make it work. I can't do this, the project is kind of big and more than 4k lines would be affected if I delete the database context. I'm using visual studio 2012 with the 3rd update, so update is not the solution either. any suggestions.