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