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

            this.Clear();
            Expression2SqlProvider.Avg(expression.Body, this._sqlBuilder);
            return(this);
        }
Example #2
0
 protected override SqlBuilder Avg(UnaryExpression expression, SqlBuilder sqlBuilder)
 {
     Expression2SqlProvider.Avg(expression.Operand, sqlBuilder);
     return(sqlBuilder);
 }
 protected override SqlBuilder Avg(ParameterExpression expression, SqlBuilder sqlBuilder)
 {
     Expression2SqlProvider.Avg(expression, sqlBuilder);
     return(sqlBuilder);
 }