hi, i have this classes

User
{
   long ID;
   Document LastDocument;
}

Document
{
   long ID;
   DateTime Creation;
   User Creator;
}

i need that the property LastDocument returns the last document (the
documents with the biggest Creation time)
 of that specified user (it is a read-only property).

i also need that that property can be lazy loaded (i need to load the
user class in 2 way:
in case A i don't need the LastDocument property so with lazy-loading
i skip the join with the document table
in case B i will use it and i will eager loading it

how i can do that?
-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.


Reply via email to