public QueryConditionNode(QField lvalue, Conditions conditions, QConst rvalue) : base() { _RValue = rvalue; _Condition = conditions; _LValue = lvalue; }
private static BsonRegularExpression LikeExprToRegexExpr(QConst val) { return new BsonRegularExpression(val.Value.ToString().Replace("%", "[a-zA-Z0-9_ ]")); }
private static BsonValue GetBsonValue(QConst val) { return val.ConstType != TypeCode.Empty ? BsonValue.Create(Convert.ChangeType(val.Value, val.ConstType)) : BsonValue.Create(val.Value); }