GetScalar with IRelationPredicateBucket.. how to?

Posts   
 
    
omar avatar
omar
User
Posts: 569
Joined: 15-Oct-2004
# Posted on: 26-May-2005 10:09:50   

I am trying to build a GetScalar function that sums a field in a table. My problem is that the IPredicate parameter in the GetScalar function would only accept ONE predicate while I want to send a complete PredicateExpression that is compound of several predicates.

Is there a way to do this ??

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 26-May-2005 10:35:13   

IPredicateExpression derives from IPredicate. So you can pass in a single predicate, created by PredicateFactory for example, but you can also pass in a predicateexpression, for example bucket.PredicateExpression simple_smile

Frans Bouma | Lead developer LLBLGen Pro