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

前端 未结 12 1012
孤城傲影
孤城傲影 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:20

    Your two EDMX files probably have the same entity container name. You need to change (at least) one of them.

    In the GUI designer, open Model Browser. Look for a node that says "EntityContainer: Entities". Click it. In Properties, change Name to something else. Save and rebuild.

提交回复
热议问题