First - many thanks to anyone who can point me in the right direction!
I'm running LLBLGen Pro 4.0 Final and I'm getting the error message below.
The type 'BaiParserDal.RelationClasses.ProcessMonitorDtlRelations' already contains a definition for 'ProcessMonitorEntityUsingProcessMonitorId'
--
I diff'ed the 2 code clips and they are identical - except for the var named ProcessMonitor_ in the following line:
IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "ProcessMonitor_", false);
--
Here are both code clips. One follows the other as you can tell in the attached file.
/// <summary>Returns a new IEntityRelation object, between ProcessMonitorDtlEntity and ProcessMonitorEntity over the m:1 relation they have, using the relation between the fields:
/// ProcessMonitorDtl.ProcessMonitorId - ProcessMonitor.ProcessMonitorId
/// </summary>
public virtual IEntityRelation ProcessMonitorEntityUsingProcessMonitorId
{
get
{
IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "ProcessMonitor", false);
relation.AddEntityFieldPair(ProcessMonitorFields.ProcessMonitorId, ProcessMonitorDtlFields.ProcessMonitorId);
relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProcessMonitorEntity", false);
relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProcessMonitorDtlEntity", true);
return relation;
}
}
/// <summary>Returns a new IEntityRelation object, between ProcessMonitorDtlEntity and ProcessMonitorEntity over the m:1 relation they have, using the relation between the fields:
/// ProcessMonitorDtl.ProcessMonitorId - ProcessMonitor.ProcessMonitorId
/// </summary>
public virtual IEntityRelation ProcessMonitorEntityUsingProcessMonitorId
{
get
{
IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "ProcessMonitor_", false);
relation.AddEntityFieldPair(ProcessMonitorFields.ProcessMonitorId, ProcessMonitorDtlFields.ProcessMonitorId);
relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProcessMonitorEntity", false);
relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("ProcessMonitorDtlEntity", true);
return relation;
}
}