I have a subtype of Position, GPPosition, with a self-reference called NonHotelColumn (using self-servicing, 2.0). When I move this field to the subtype, rather than leaving it in Position, I get several compile errors in the generated code that attempts to reference PositionFieldIndex.NonHotelColumn. For example: in PositionRelations, I have
public virtual IEntityRelation PositionEntityUsingNonHotelColumn
{
get
{
IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany);
relation.StartEntityIsPkSide = true;
relation.AddEntityFieldPair(EntityFieldFactory.Create(PositionFieldIndex.ID), EntityFieldFactory.Create(PositionFieldIndex.NonHotelColumn));
relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("PositionEntity", true);
relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("PositionEntity", false);
return relation;
}
}
I have a similar problem in PositionDAO.