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

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