NHibernate: Simplest way to return an object with paged children collection?
问题 I want to return one Parent object with the children collection eagerly loaded with the requested page (subset) of children objects. What's the best way to achieve this? Filters? Is is possible with an ICriteria query? I'm using .SetFirstResult() and .SetMaxResults() to do paging for collections of aggregate root results, but is it possible to utilize this withing the aggregate root to select the page of children results? Something along these lines: public class Parent{ int Id; IList<Child>