Esempio 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));
 }
Esempio 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));
        }
Esempio n. 3
0
 public InExp(val lOperand, params IElement[] operands)
 {
     _lOperand = lOperand;
     _operands = operands;
 }
Esempio n. 4
0
 public IsNull(val operand)
 {
     _operand = operand;
 }
Esempio n. 5
0
 public IExp Between(object fromOperand, val toOperand)
 {
     return(new Between(this, new Literal(fromOperand), toOperand));
 }
Esempio n. 6
0
 public IExp Between(val fromOperand, object toOperand)
 {
     return(new Between(this, fromOperand, new Literal(toOperand)));
 }
Esempio n. 7
0
 public IExp Between(val fromOperand, val toOperand)
 {
     return(new Between(this, fromOperand, toOperand));
 }
Esempio n. 8
0
 public IExp Like(val rOperand)
 {
     return(new LikeExp(new Literal(this), rOperand));
 }
Esempio n. 9
0
 public Between(val operand, IElement fromOperand, IElement toOperand)
 {
     _operand     = operand;
     _fromOperand = fromOperand;
     _toOperand   = toOperand;
 }