Hello,
I have to write a generic function that takes (IEntity entity) as an arguement.
I want to know [before i actually make GetMulti() call] all the related Entities.
e.g. My Current Entity is A having PrimaryKey field X which is used as as FK in Entity B [Having PrimaryKey field named Y ] and in Entity C Y is used as FK.
My generic function will get object of Entity A as it is at the top of the chain.
Now I want to know the Entities Related with A , [directly or InDirectly i.e. Entity B and C]
In designer I can see EntityA to B relations.
I have added an entity from "Fields on relation" section of designer and named it J
But while i code and try to get all the relations
foreach (IEntityRelation relation in entity.GetAllRelations())
in relation object i can get the name that i have given to the entity
e.g. J but how can i know this J belongs to which Entity?
I expected AliasFKSide or AliasPKSide will give me name of actual entities but they have been coming as ""
Can you please let me know what is going wring in here?
thanks
Ammit