Database in use error with Entity Framework 4 Code First

后端 未结 6 657
借酒劲吻你
借酒劲吻你 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:23

    I had the same issue.

    I resolved it by closing a connection open under the Server Explorer view of Visual Studio.

提交回复
热议问题