Entity Framework error - “The EntityContainer name must be unique”

前端 未结 10 2289
南旧
南旧 2021-02-07 09:24

We have a solution which consists of two projects - a console application project and a web application project. Each of these has an identical in schema, but differently named

10条回答
  •  被撕碎了的回忆
    2021-02-07 09:56

    This error occurs when you have more than one entity model.edmx files in a single DLL or class library project. Although the reason behind the error is not known to me , you can fix this by deleting the other model or moving the other model.edmx file to another class library .

    Also dont forget to remove the references of the previous dll

提交回复
热议问题