I'm trying to filter results for user request.
For instance you have orders
and order details
and products
is child collection.
When user wants to filter by product I'm getting an error because of No property or field 'PRODUCTS' exists in type 'ICollection
1'`
I'm writing my query like this.
var orders = _uow.Repository<ORDERS>()
.Query()
.Where("PRODUCTS.HEADING.ToLower().Contains(\"foo\")")
.Include("ORDER_DETAILS")
.Include("ORDER_DETAILS.PRODUCTS")
.ToList();
So it's not possible to filter child collection like this? Or any way to filter?
Thanks.