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

前端 未结 10 2324
南旧
南旧 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 10:05

    When faced with this problem in the past, I've always created a third, shared library that contains the entity model - that way you know there's not going to be a name conflict, if you decide to add a new table/column/method to the model you only need to do so once, etc, etc.

提交回复
热议问题