I have got into a bad state with my ASP.Net MVC 5 project, using Code-First Entity Framework. I don\'t care about losing data, I just want to be able to start fresh, recreat
I would like to add that Lin's answer is correct.
If you improperly delete the MDF you will have to fix it. To fix the screwed up connections in the project to the MDF. Short answer; recreate and delete it properly.
update-database -force
[Use force if necessary]Done, enjoy your new db
UPDATE 11/12/14 - I use this all the time when I make a breaking db change. I found this is a great way to roll back your migrations to the original db:
Run the normal migration to put it back to current
Update-Database -TargetMigration:0 -force
[This will destroy all tables and all data.] Update-Database -force
[use force if necessary]