Hello NH group,
I'm feeling pretty dense and can't figure out how to convert this
query to use ICriteria:
qry = NHibernateSession.CreateQuery(
@"select elements(p.Children) from Parent p where p.ID = :argParentID"
).SetParameter("argParentID", parentID);
Parents has an ISet of Children, but a Child does not have a reference
to a Parent. I've stumbled around a bit with DetachedCriteria and
subqueries but haven't found the right incantation.
Thanks in advance,
Luke
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---