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.