Hi! I'm trying to create a RelationPredicateBucket but I'm running into the following error:
The call is ambiguous between the following methods or properties: 'SD.LLBLGen.Pro.ORMSupportClasses.EntityField2.operator ==(SD.LLBLGen.Pro.ORMSupportClasses.EntityField2, System.Collections.IList)' and 'SD.LLBLGen.Pro.ORMSupportClasses.EntityField2.operator ==(SD.LLBLGen.Pro.ORMSupportClasses.EntityField2, SD.LLBLGen.Pro.ORMSupportClasses.Expression)
I'm using the following code, with the error related to TocFields.ParentId on the third line:
RelationPredicateBucket filter = new RelationPredicateBucket();
IPredicateExpression expression = new PredicateExpression();
expression.Add(TocFields.ParentId == null);
expression.AddWithAnd(TocFields.SectionId == sectionEntity.Id);
filter.PredicateExpression.Add(expression);