public WhereConjuntionBuilder WhereNotIn <TTable, TValueType> (string field, List <TValueType> values) { var criteria = WhereInFilterMaker.GetWhereInSectionArguments(values); if (string.IsNullOrEmpty(criteria)) { return(_whereConjunctionBuilder); } else { return(Where <TTable> (field, $" not in {criteria}")); } }
public FilterDescription <TTable> SetWhereInFilter <TField, TValueType>(Expression <Func <TTable, TField> > fieldNameDescriptor, List <TValueType> listItems) { var noFilterValues = listItems == null || listItems.Count == 0; if (noFilterValues) { return(this); } else { var bracketed = WhereInFilterMaker.GetWhereInSectionArguments(listItems); return(SetFilter(fieldNameDescriptor, $" in {bracketed}")); } }