I have a lazy-loaded collection that I would like to filter at runtime. For instance I may want to filter the collection so that I SELECT only a subset of the related entities.
I understand how to use ISession.CreateFilter(), but I would like to do this type of filtering from within the class which contains the collection. I definitely do not want my class having a reference to ISession as this significantly reduces the testability of my domain model. Are there any other alternatives or approaches for executing this kind of query, while still maintaining a reasonable level of encapsulation and high testability? Thank you, -- Joseph Daigle -- 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.
