public WhereFilter And( string fieldName, string @operator = null, object value = null, bool ignoreCase = false, bool ignoreAccent = false) { WhereFilter whereFilter = new WhereFilter() { Field = fieldName, Operator = @operator, value = value, IgnoreCase = ignoreCase, IgnoreAccent = ignoreAccent }; return(new WhereFilter() { Condition = "and", IsComplex = true, predicates = new List <WhereFilter>() { this, whereFilter } }); }
public WhereFilter And(WhereFilter predicate) => new WhereFilter() { Condition = "and", IsComplex = true, predicates = new List <WhereFilter>() { this, predicate } };
public Query Where(WhereFilter predicate) { Queries.Where = Queries.Where ?? new List <WhereFilter>(); Queries.Where.Add(predicate); return(this); }