Beispiel #1
0
        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);
        }
Beispiel #2
0
 public Queryable <T> Sum(Expression <Func <T, object> > field, string alias)
 {
     Fields.Add(SqlExpression.Alias(SqlExpression.Function("SUM", SqlExpression.Field(field)), alias));
     return(this);
 }