Filter child collection returned with Aggregate Root using Nhibernate

后端 未结 4 1299
小蘑菇
小蘑菇 2021-01-13 08:46

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

4条回答
  •  广开言路
    2021-01-13 08:57

    You can also do it using HQL using session.Filter(customer.Orders, "where this.Status == 'Shipped'");

提交回复
热议问题