Hi,
whenever I generate code for my SQL Server database, the following method is generated twice and I cannot compile the generated code before removing one of the duplicate methods.
Before generating the code, I remove all existing code from previous generations.
How can I fix this behaviour?
Regards, Mario
/// <summary>Returns a new IEntityRelation object, between UserEntity and UserEntity over the 1:1 relation they have, using the relation between the fields:
/// User.UserId - User.UserId
/// </summary>
public virtual IEntityRelation UserEntityUsingUserId
{
get
{
IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToOne);
relation.AddEntityFieldPair(EntityFieldFactory.Create(UserFieldIndex.UserId), EntityFieldFactory.Create(UserFieldIndex.UserId));
relation.StartEntityIsPkSide = false;
relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("UserEntity", false);
relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("UserEntity", true);
return relation;
}
}