public static BooleanExpression OrMultiple(this CommonFactory c, params BooleanExpression[] expressions) { var builda = c.NewBooleanBuilder(); foreach (var e in expressions) { builda.Or(e); } return(builda.CreateExpression()); }
public static BooleanExpression AndMultiple(this CommonFactory c, params BooleanExpression[] expressions) { // If we want to return conjunction, then for empty expressions need to explicitly do c.And(c.Empty, c.Empty); var builda = c.NewBooleanBuilder(); foreach (var e in expressions) { builda.And(e); } return(builda.CreateExpression()); }