Ejemplo n.º 1
0
 public IExp In(val operand, params val[] operands)
 {
     IElement[] literals = new IElement[operands.Length + 1];
     literals[0] = operand;
     for (int i = 1; i <= operands.Length; i++)
     {
         literals[i] = operands[i - 1];
     }
     return(new InExp(this, literals));
 }
Ejemplo n.º 2
0
        internal SqlLiteral CreateSqlLiteral(ICaster caster
                                             , IViewInfoGetter viewInfoGetter
                                             , val val
                                             , object literal)
        {
            string         propertyName   = val.PropertyName;
            ViewColumnInfo viewColumnInfo = viewInfoGetter.GetViewColumnInfo(propertyName);

            if (viewColumnInfo == null)
            {
                throw new NotExistsViewColumnException(
                          propertyName + "はレコード" + viewInfoGetter.GetViewInfo().Name +
                          "に存在しない、" + "またはSELECT句と紐付いていません");
            }
            string sqlLiteral = caster.CastToSqlLiteralType(literal, viewColumnInfo);

            return(new SqlLiteral(sqlLiteral));
        }
Ejemplo n.º 3
0
 public InExp(val lOperand, params IElement[] operands)
 {
     _lOperand = lOperand;
     _operands = operands;
 }
Ejemplo n.º 4
0
 public IsNull(val operand)
 {
     _operand = operand;
 }
Ejemplo n.º 5
0
 public IExp Between(object fromOperand, val toOperand)
 {
     return(new Between(this, new Literal(fromOperand), toOperand));
 }
Ejemplo n.º 6
0
 public IExp Between(val fromOperand, object toOperand)
 {
     return(new Between(this, fromOperand, new Literal(toOperand)));
 }
Ejemplo n.º 7
0
 public IExp Between(val fromOperand, val toOperand)
 {
     return(new Between(this, fromOperand, toOperand));
 }
Ejemplo n.º 8
0
 public IExp Like(val rOperand)
 {
     return(new LikeExp(new Literal(this), rOperand));
 }
Ejemplo n.º 9
0
 public Between(val operand, IElement fromOperand, IElement toOperand)
 {
     _operand     = operand;
     _fromOperand = fromOperand;
     _toOperand   = toOperand;
 }