GetInheritanceInfo method - "startWithRoot" further detail please

Posts   
 
    
jshallard
User
Posts: 62
Joined: 23-Mar-2005
# Posted on: 01-Aug-2007 19:22:33   

Looking at the documentation for the GetInheritanceInfo method, it states:

_startWithRoot _ Set to true if the relations in RelationsToHierarchyRoot have to start with the root and walk downwards to the entityName entity, or set to false if the relations have to start at the entityname and move upwards to the root.

I don't really understand what this means! Could someone elaborate on this a little for me?

Thanks for any help

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 02-Aug-2007 09:58:58   

This method returns an IInheritanceInfo which has a member called RelationsToHierarchyRoot which is a relationCollection dexcribing the relations from the root entity to the entity in hand or vice versa... (the sequence of JOINS used to construct this relation).

You can always traverse relation/s between 2 entities from either side of the relation to the other end.

This flag specifies which end to start with in building the relation.

jshallard
User
Posts: 62
Joined: 23-Mar-2005
# Posted on: 02-Aug-2007 16:05:52   

Thanks!