コード例 #1
0
        internal SQLSelectGroupByField(SQLExpression objExpression)
        {
            if (objExpression == null)
                throw new ArgumentNullException();

            pobjExpression = objExpression;
        }
コード例 #2
0
        public SQLUpdateField Add(string strDestinationFieldName, SQLExpression objExpression)
        {
            SQLUpdateField objField = new SQLUpdateField(strDestinationFieldName, objExpression);

            pobjFields.Add(objField);

            return objField;
        }
コード例 #3
0
        public SQLUpdateField(string strDestinationFieldName, SQLExpression objSourceExpression)
        {
            if (String.IsNullOrEmpty(strDestinationFieldName))
                throw new ArgumentNullException("DestinationFieldName");
            else if (objSourceExpression == null)
                throw new ArgumentNullException("SourceExpression");

            base.Name = strDestinationFieldName;
            base.Value = objSourceExpression;
        }
コード例 #4
0
 public SQLStringConcatExpression(SQLExpression leftExpression, SQLExpression rightExpression)
 {
     this.LeftExpression = leftExpression;
     this.RightExpression = rightExpression;
 }
コード例 #5
0
 public SQLArithmeticExpression(SQLExpression objLeftExpression, ArithmeticOperator eOperator, SQLExpression objRightExpression)
 {
     pobjLeft = objLeftExpression;
     peOperator = eOperator;
     pobjRight = objRightExpression;
 }
コード例 #6
0
 public SQLArithmeticExpression(string strLeftFieldName, ArithmeticOperator eOperator, SQLExpression objRightExpression)
     : this(new SQLFieldExpression(strLeftFieldName), eOperator, objRightExpression)
 {
 }
コード例 #7
0
 public SQLRightFunctionExpression(SQLExpression objExpression, int intLength)
     : base(objExpression, new SQLValueExpression(intLength))
 {
     if (intLength < 0)
         throw new ArgumentException("Length: " + intLength.ToString());
 }
コード例 #8
0
 public SQLAggregateExpression(AggregateFunction aggregate, SQLExpression expression)
     : base(expression)
 {
     this.aggregate = aggregate;
 }
コード例 #9
0
 public SQLConditionExpression(SQLExpression objLeftExpression, ComparisonOperator eCompare, SQLExpression objRightExpression)
 {
     this.LeftExpression = objLeftExpression;
     this.Compare = eCompare;
     this.RightExpression = objRightExpression;
 }
コード例 #10
0
        public SQLSelectTableJoinCondition Add(SQLExpression objLeftExpression, ComparisonOperator eCompare, SQLExpression objRightExpression)
        {
            EnsureComparisonOperatorValid(eCompare);
            AddLogicalOperatorIfRequired();

            var joinCondition = new SQLSelectTableJoinCondition();

            joinCondition.LeftExpression = objLeftExpression;
            joinCondition.Compare = eCompare;
            joinCondition.RightExpression = objRightExpression;

            pobjConditions.Add(joinCondition);

            return joinCondition;
        }
コード例 #11
0
 public SQLLogicalExpression(SQLExpression leftExpression, LogicalOperator @operator, SQLExpression rightExpression)
 {
     this.LeftExpression = leftExpression;
     this.@operator = @operator;
     this.RightExpression = rightExpression;
 }
コード例 #12
0
 public SQLBitwiseExpression(SQLExpression objLeftExpression, BitwiseOperator eOperator, SQLExpression objRightExpression)
 {
     pobjLeft = objLeftExpression;
     peOperator = eOperator;
     pobjRight = objRightExpression;
 }
コード例 #13
0
 public SQLBitwiseExpression(string strLeftFieldName, BitwiseOperator eOperator, SQLExpression objRightExpression)
     : this(new SQLFieldExpression(strLeftFieldName), eOperator, objRightExpression)
 {
 }