Hi,
I am trying to construct a where clause that is as follows;
SELECT GroupName FROM Group INNER JOIN .... (this part doesn't matter)
WHERE fn_CountGroupsInBrochure(GroupId, 'BrochureName') > 0
I can create an expression as follows
IExpression FunctionExpression = new Expression(new DbFunctionCall("fn_CountGroupsInBrochure", new object[] { GroupFields.GroupId, BrochureCode }), ExOp.GreaterThan, 0);
But I cannot see how to turn this into a predicate without involving a field name. I was hoping for
IPredicateExpression BrochureFilter = new PredicateExpression();
BrochureFilter.Add(FunctionExpression);
or something similar.
Help!!!