How to work with LocalDB and EF, without using migrations
问题 I am on VS 2012 RTM, with EF 5. I am doing Code First, but trying to ignore Code Migrations since I am just in development. To avoid them, I have this set Database.SetInitializer(new DropCreateDatabaseIfModelChanges<SomeContext>()); Occasionally, even when I don't think I've touched the model, it decides to recreate. That's fine. But it usually results in the error Cannot drop database because it is currently in use. So I decided to delete the database entirely. I go into VS, go to the "SQL