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
ICriteria crit = session.CreateCriteria (typeof(Customer)); crit.CreateAlias ("Orders", "o"); crit.Add (Expression.Eq ("o.Status", shippedStatus)); crit.Add (Expression.Eq ("Id", customerId)); return crit.UniqueResult ();
something like that.