We have two tables that are related by dual primary key field. The generated code generated two methods that are exactly the same, and therefore is causing the project to not build successfully. Is there something I am overlooking?
Here is the error:
Error 1 C:\VS2005Projects\TMS\TMSDAL\RelationClasses\ProjectxdivisiontasksRelations.cs The type 'TMSDAL.RelationClasses.ProjectxdivisiontasksRelations' already contains a definition for 'ProjectxdivisiontasksEntityUsingTaskIdProjectId' 85 34 TMSDAL
**
Duplicate methods in RelationClasses folder:**
/// <summary>Returns a new IEntityRelation object, between ProjectxdivisiontasksEntity and ProjectxdivisiontasksEntity over the 1:1 relation they have, using the relation between the fields:
/// Projectxdivisiontasks.TaskId - Projectxdivisiontasks.TaskId
/// Projectxdivisiontasks.ProjectId - Projectxdivisiontasks.ProjectId
/// </summary>
public virtual IEntityRelation ProjectxdivisiontasksEntityUsingTaskIdProjectId
{
get
{
IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToOne);
relation.AddEntityFieldPair(EntityFieldFactory.Create(ProjectxdivisiontasksFieldIndex.TaskId), EntityFieldFactory.Create(ProjectxdivisiontasksFieldIndex.TaskId));
relation.AddEntityFieldPair(EntityFieldFactory.Create(ProjectxdivisiontasksFieldIndex.ProjectId), EntityFieldFactory.Create(ProjectxdivisiontasksFieldIndex.ProjectId));
relation.StartEntityIsPkSide = false;
relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProjectxdivisiontasksEntity", false);
relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProjectxdivisiontasksEntity", true);
return relation;
}
}
/// <summary>Returns a new IEntityRelation object, between ProjectxdivisiontasksEntity and ProjectxdivisiontasksEntity over the 1:1 relation they have, using the relation between the fields:
/// Projectxdivisiontasks.TaskId - Projectxdivisiontasks.TaskId
/// Projectxdivisiontasks.ProjectId - Projectxdivisiontasks.ProjectId
/// </summary>
public virtual IEntityRelation ProjectxdivisiontasksEntityUsingTaskIdProjectId
{
get
{
IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToOne);
relation.AddEntityFieldPair(EntityFieldFactory.Create(ProjectxdivisiontasksFieldIndex.TaskId), EntityFieldFactory.Create(ProjectxdivisiontasksFieldIndex.TaskId));
relation.AddEntityFieldPair(EntityFieldFactory.Create(ProjectxdivisiontasksFieldIndex.ProjectId), EntityFieldFactory.Create(ProjectxdivisiontasksFieldIndex.ProjectId));
relation.StartEntityIsPkSide = false;
relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProjectxdivisiontasksEntity", false);
relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProjectxdivisiontasksEntity", true);
return relation;
}
}
Thanks, -c