Is this possible: filter on the prefetched entities by a value from the root entity?
To use the customer - order example, get all customers that ordered something on their birthdays and only those orders
I tried the following but did not work. I always get all orders vs just the orders on the birthdays.
EntityCollection<Customer> customers = new EntityCollectioni<Customer>();
PrefetchPath2 prefetch = new PrefetchPath2((int)EntityType.CustomerEntity);
RelationCollection relations = new RelationCollection();
relations.Add(CustomerEntity.Relations.OrderEntityUsingCustomerId);
IPredicate filter = new PredicateExpression(OrderFields.Date == CustomerFields.Birthday);
prefetch.Add(CustomerEntity.PrefetchPath.Orders, 100, filter, relations);