public Expression2SqlCore <T> Avg(Expression <Func <T, object> > expression) { this._sqlPack.Clear(); this._sqlPack.IsSingleTable = true; Expression2SqlProvider.Avg(expression.Body, this._sqlPack); return(this); }
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); }
protected override SqlBuilder Avg(ParameterExpression expression, SqlBuilder sqlBuilder) { Expression2SqlProvider.Avg(expression, sqlBuilder); return(sqlBuilder); }
public ExpressionToSql <T> Avg(Expression <Func <T, object> > expression) { this._sqlBuilder.Clear(); Expression2SqlProvider.Avg(expression.Body, this._sqlBuilder); return(this); }
protected override SqlBuilder Avg(UnaryExpression expression, SqlBuilder sqlBuilder) { Expression2SqlProvider.Avg(expression.Operand, sqlBuilder); return(sqlBuilder); }
protected override SqlPack Avg(UnaryExpression expression, SqlPack sqlPack) { Expression2SqlProvider.Avg(expression.Operand, sqlPack); return(sqlPack); }