I'm trying to build up a predicate that can work on multiple tables, where I have a particular entity.
The code I tried was:
IRelationPredicateBucket predicatePreviousEntity = new RelationPredicateBucket((entity.Fields["parentId"] == entity.Id));
Which it doesn't seem to like. What is the equivalent which would work?