Hello I have a simple tree
class folder
{
IList<folder> Children;
folder Parent;
}
When I try and pull the tree out I am getting multiple hits as it
tries to pull the children. Is it possible to pull the entire tree out
from a given node? I have read this article:
http://blogs.hibernatingrhinos.com/nhibernate/archive/2008/05/14/how-to-map-a-tree-in-nhibernate.aspx
Which has gotten me really far. There's a method in there towards the
bottom which using a recursive query pulls out all the decsendants
which is essentially what I want. But if I'm not mistaken it looks
like nHibernate is just constructing a list of nodes, and when I query
the nodes it results in hitting the DB again.
I'm thinking I can basically take the list of items and fix up the
object model myself but I'd rather not do this if I didn't have to.
FYI my model at this point is very simillar to that article using the
first method.
Thanks in advance
Josh
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---