コード例 #1
0
        public ExpressionToSql <T> Sum(Expression <Func <T, object> > expression)
        {
            if (expression == null)
            {
                throw new ArgumentNullException("expression", "Value cannot be null");
            }

            this.Clear();
            Expression2SqlProvider.Sum(expression.Body, this._sqlBuilder);
            return(this);
        }
コード例 #2
0
 protected override SqlBuilder Sum(UnaryExpression expression, SqlBuilder sqlBuilder)
 {
     Expression2SqlProvider.Sum(expression.Operand, sqlBuilder);
     return(sqlBuilder);
 }
コード例 #3
0
 protected override SqlBuilder Sum(ParameterExpression expression, SqlBuilder sqlBuilder)
 {
     Expression2SqlProvider.Sum(expression, sqlBuilder);
     return(sqlBuilder);
 }