Hi everyone,
I'm missing somethign blindingly obvious here. Needing to use GetScalar to fetch a count of a particular query.
if I've got
- one field I need to do the COUNT expression on
- a RelationPredicateBucket containing the (several) predicates and relations needed for those predicates to make sense
- a group by expression (with a HAVING clause)
How do I use these for GetScalar?
At the moment I've got
return da.GetScalar(myField, (IExpression)null, AggregateFunction.Count, predicateBucket.PredicateExpression, groupByClause, predicateBucket.Relations);
... but this doesn't exactly match the overloads available. What am I missing?
Thanks!