Ejemplo n.º 1
0
 public static CompoundPredicate Or(IEnumerable<Predicate> subpredicates)
 {
     CompoundPredicate p = new CompoundPredicate();
       p.CompoundPredicateType = CompoundPredicateType.Or;
       p.Subpredicates = subpredicates;
       return p;
 }
Ejemplo n.º 2
0
 public static CompoundPredicate Not(Predicate subpredicate)
 {
     CompoundPredicate p = new CompoundPredicate();
       p.CompoundPredicateType = CompoundPredicateType.Not;
       var l = new List<Predicate>();
       l.Add(subpredicate);
       p.Subpredicates = l;
       return p;
 }