Beispiel #1
0
 public SqlQueryable <T> Avg(Expression <Func <T, object> > expression)
 {
     if (expression == null)
     {
         throw new ArgumentNullException("avg expression", "Value cannot be null");
     }
     this._sqlBuilder.SetSqlCommandType(SqlCommandType.Calculate);
     this.Clear();
     SqlProvider.Avg(expression.Body, this._sqlBuilder);
     return(this);
 }
 protected override SqlBuilder Avg(ParameterExpression expression, SqlBuilder sqlBuilder)
 {
     SqlProvider.Avg(expression, sqlBuilder);
     return(sqlBuilder);
 }
Beispiel #3
0
 protected override SqlBuilder Avg(UnaryExpression expression, SqlBuilder sqlBuilder)
 {
     SqlProvider.Avg(expression.Operand, sqlBuilder);
     return(sqlBuilder);
 }