I\'m trying filter the child collection of an aggregate root when loading it with Nhibernate. Load a Customer with all their Orders that have been shipped. Is this possibl
You could look at it the other way - load all the shipped orders for a Customer.
session.CreateCriteria( typeOf(Order) ) .Add( Restrictions.Eq("Shipped", shippedStatus ) ) .Add( Restrictions.Eq("Customer", requiredCustomer) ) .List();