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); }
protected override SqlBuilder Sum(UnaryExpression expression, SqlBuilder sqlBuilder) { Expression2SqlProvider.Sum(expression.Operand, sqlBuilder); return(sqlBuilder); }
protected override SqlBuilder Sum(ParameterExpression expression, SqlBuilder sqlBuilder) { Expression2SqlProvider.Sum(expression, sqlBuilder); return(sqlBuilder); }