How to tell if Relation was fetched already? (SelfServicing)

Posts   
 
    
swegele
User
Posts: 33
Joined: 25-Jan-2007
# Posted on: 01-Feb-2007 00:32:41   

Using latest code and SelfServicing pattern

Is there a way to check an EntityClass to see if it has fetched a relation class WITHOUT CAUSING IT TO LAZY LOAD?

In my model I have to get back across a portal before having access to the database...I don't see any apparent way to check since just accessing the property would fire the LazyLoad logic.

Sean

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 01-Feb-2007 07:54:09   

You may try the YourEntity.OnRelatedEntitySet() to raise a flag of your own, if the specified entity was fetched/set.