public static ILiteQueryable <T> Where <T>(this ILiteQueryable <T> self, bool execute, Expression <Func <T, bool> > query) { if (execute) { return(self.Where(query)); } return(self); }
/// <summary> /// Filters a sequence of documents based on a predicate expression /// </summary> public ILiteQueryableAsync <T> Where(BsonExpression predicate) { _wrappedQuery.Where(predicate); return(this); }
public IDataQuery <T> Where(Expression <Func <T, bool> > predicate) => new LiteDataQuery <T>(_queryable.Where(predicate));