protected override void VisitWhereNotIn(WhereNotInExpression expression) { var query = QueryBuilder.Query.NotIn(expression.FieldName, expression.Values.Select(it => BsonHelper.Create(it)).ToArray()); SetQuery(query); }
protected virtual void VisitWhereNotIn(WhereNotInExpression expression) { IWhereExpression exp = new TrueExpression(); foreach (var value in expression.Values) { exp = new AndAlsoExpression(exp, new WhereNotEqualsExpression(null, expression.FieldName, value)); } this.VisitWhere(exp); }