Hello,
I am migrating a rather old project from 2.6 straight to 5.7
I would need help with building the dynamic relations.
So in the old code I have things like this:
IEntityRelation rb = new EntityRelation(RelationType.OneToMany);
rb.StartEntityIsPkSide = true;
rb.AddEntityFieldPair(CorporationHierarchyListItemFields.UnitID, AccountFields.BusinessUnitID);
rb.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("CorporationHierarchyListItem", false);
rb.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("AccountEntity", true);
filter.Relations.Add(rb, JoinHint.Inner);
So basically it's an inner join between a view and a table.
I'd guess I need to convert this to DynamicRelation? but then I could not figure out how to do it if one part is a view?
Thanks,
Artem