This is not possible with breezes. I recommend that you implement a method in your support that returns all customers where any Order.Description contains the word "foo".
If you use the web API, it will be something similar to:
query = entityQuery.from('getCustomerAnyOrderWithFooDescription');
In its backend:
[HttpGet]
public IQueryable<Customer> getCustomerAnyOrderWithFooDescription()
{
return _contextProvider.Context.Customers.Where(c.Orders.Any(o => o.Description.Contains('foo')));
}
You can also do this more generally by doing something like this:
query = entityQuery.from('getCustomerAnyOrderWithDescription').withParameters('foo');
[HttpGet]
public IQueryable<Customer> getCustomerAnyOrderWithDescription([FromBody] String someText)
{
return _contextProvider.Context.Customers
.Where(c.Orders.Any(o => o.Description.Contains(someText)));
}
source
share