Concatenating two (or more) PredicateExpressions

Posts   
 
    
stoneyowl avatar
stoneyowl
User
Posts: 62
Joined: 29-Jan-2004
# Posted on: 06-Sep-2006 16:04:34   

I did a search but found nothing on this, although I really thought I had read something somewhere...confused

Is it possible, given two (or more) separate PredicateExpressions, to somehow concatenate them? Or do I need to loop through each one and build a 'master' expression?

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 06-Sep-2006 16:16:42   

Yes just use the Add, AddWithAnd & AddWithOr methods. They accepts anything of type IPredicate