Ejemplo n.º 1
0
 protected override Expression VisitAggregate(AggregateExpression aggregate)
 {
     WriteAggregateName(aggregate.AggregateName);
     Write("(");
     if (aggregate.IsDistinct)
     {
         Write("DISTINCT ");
     }
     if (aggregate.Argument != null)
     {
         VisitValue(aggregate.Argument);
     }
     else if (RequiresAsteriskWhenNoArgument(aggregate.AggregateName))
     {
         Write("*");
     }
     Write(")");
     return(aggregate);
 }
Ejemplo n.º 2
0
 protected virtual bool CompareAggregate(AggregateExpression a, AggregateExpression b)
 {
     return(a.AggregateName == b.AggregateName && Compare(a.Argument, b.Argument));
 }
Ejemplo n.º 3
0
        protected virtual Expression VisitAggregate(AggregateExpression aggregate)
        {
            Expression arg = Visit(aggregate.Argument);

            return(UpdateAggregate(aggregate, aggregate.Type, aggregate.AggregateName, arg, aggregate.IsDistinct));
        }
Ejemplo n.º 4
0
 protected override Expression VisitAggregate(AggregateExpression aggregate)
 {
     hasAggregate = true;
     return(aggregate);
 }