Example #1
0
 protected override void VisitWhereNotIn(WhereNotInExpression expression)
 {
     var query = QueryBuilder.Query.NotIn(expression.FieldName, expression.Values.Select(it => BsonHelper.Create(it)).ToArray());
     SetQuery(query);
 }
Example #2
0
 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);
 }