Database in use error with Entity Framework 4 Code First

后端 未结 6 651
借酒劲吻你
借酒劲吻你 2020-12-02 09:39

I have an MVC3 and EF 4 Code First application, which is configured to change the DB when the model changes, by setting the DB Initializer to a DropCreateDatabaseIfMod

6条回答
  •  南方客
    南方客 (楼主)
    2020-12-02 10:39

    In Visual Studio 2012, the SQL Server Object Explorer window can hold a connection to the database. Closing the window and all windows opened from it releases the connection.

提交回复
热议问题