vb.net - Nhibernate partial eager load of child collection -
if have parent object (parent) has list(of child) objects many-one relationship. possible return parent subset of it's child objects (eagerly loaded)? using vb , criteria.
e.g. if parent 1 has 50 children (20 type x 30 type y) , want return parent collection containing type x.
i want collection size of 20 it's eagerly loaded children?
thanks
hql query. fetch keyword initialize children along parent.
from parent left join fetch parent.children child child.type = x
Comments
Post a Comment