hey all,
 i have the following query:

            DetachedCriteria query =
DetachedCriteria.For(typeof(UserRating))

.Add(Restrictions.In("Item", itemsArray))

.Add(Restrictions.Eq("OfUser", user));

since Item has Parent of type Item (tree),
every time i run that query i get  UserRating with a chain of
UserRating.Item.Parent.Parent.Parent... all loaded eagerly.
any idea how to restrict it to only fetch UserRating.Item without all the
parents? (i've tried using SetFetchMode("Item", FetchMode.Lazy) ) but didn't
work

thanks.

--~--~---------~--~----~------------~-------~--~----~
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