Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Error Message that EntityContainer with the name 'Model' is already definedError Message that EntityContainer with the name 'Model' is already defined
Previous
 
Next
New Post
6/22/2015 12:31 PM
 

Hi 

I have used Christoc's Module development project to create a module. But I am getting the error "Data.Models.Model.csdl(3,4) : error 0019: The EntityContainer name must be unique." 

I have created an edmx file named MyEdm.edmx . The entity container name is Entities. 

I created the following partial class. 

    public partial class Entities

    {

        public static Entities Instance()

        {

            var entityBuilder = new System.Data.EntityClient.EntityConnectionStringBuilder();

            entityBuilder.ProviderConnectionString = DotNetNuke.Common.Utilities.Config.GetConnectionString();

            entityBuilder.Metadata = "res://*/";

            entityBuilder.Provider = "System.Data.SqlClient";

            return new Christoc.Modules.ModuleExample6.Data.Models.Entities(entityBuilder.ToString());

        }

    } 

I didn't define or use Data.Models.Model.csdl .

But I am still getting the error "An EntityContainer with the name 'Model' is already defined. " I dob;t have any enity container with the name Model. 

Any idea to solve this problem.

 
New Post
6/29/2015 1:22 PM
 
There are multiple possible causes for this from what I can gather.

1) EDMX file/files may have the same entity container name. (fix is to rename one)

2) Renaming of assembly left an old version in your bin. (fix is to delete the old version)

3) Compiler might have hiccupped. Recompile.


http://stackoverflow.com/questions/20...


 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Error Message that EntityContainer with the name 'Model' is already definedError Message that EntityContainer with the name 'Model' is already defined


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out