psandler wrote:
Frans,
Quick question I got from a co-worker today that I couldn't answer:
Why do fetches take a RelationPredicateBucket as a parameter, while PrefetchPath.Add takes separate parameters for relations and predicateexpressions?
Thanks,
Phil
With some methods I used separate predicate and relations parameters, to avoid having to make a relationpredicatebucket as in these situations it would be likely that you would have a filter on the same entities as you're fetching but not with relations.
This is in a time where there wasn't a constructor on the relationpredicatebucket which accepts a predicate, so it would take extra code in these situations. Admitted, it should have been more consistent.