public Queryable <T> Sum(SqlExpression expression, string alias) { if (expression == null) { throw new ArgumentNullException("expression"); } Fields.Add(SqlExpression.Alias(SqlExpression.Function("SUM", expression), alias)); return(this); }
public Queryable <T> Sum(Expression <Func <T, object> > field, string alias) { Fields.Add(SqlExpression.Alias(SqlExpression.Function("SUM", SqlExpression.Field(field)), alias)); return(this); }