GetDependentRelatedEntities and GetMemberEntityCollections

Posts   
 
    
sparmar2000 avatar
Posts: 341
Joined: 30-Nov-2003
# Posted on: 08-Aug-2005 10:43:31   

Frans,

Are there any methods available that will allow me to see all the relations a entity has to other entity.

Seems like the above methods return the relations the have been 'accessed' at runtime - lazy loading I guess.

Thnaks in advance

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 08-Aug-2005 11:12:00   

Use the <entityname>Relations object returned from the static Relations property of an entity type, and then the properties of that object, which return a relation object. Relation traversal requires data to use to find back a relation, and that's often achieved best with code generation, so generate code from the relations of an entity and use that generated code to traverse the relations at runtime.

Frans Bouma | Lead developer LLBLGen Pro