The EntityContainer name must be unique. An EntityContainer with the name 'Entities' is already defined

前端 未结 12 992
孤城傲影
孤城傲影 2020-12-15 03:11

For a little background:

I have a DLL project with the following structure:

Rivworks.Model (project)  
  \\Negotiation (folder)  
      Model.edmx          


        
12条回答
  •  感情败类
    2020-12-15 03:25

    Hijacking this, since it is the top Google result for the error message.

    In case anyone else encounters this while only using a single model/context: I once ran into this problem because the assembly containing the model/context was renamed and a copy with the previous name remained in the bin directory of the application. The solution was to delete the old assembly file.

提交回复
热议问题