Beispiel #1
0
 public virtual AggregateFunctionExpression VisitAggregateFunction(AggregateFunctionExpression expression)
 {
     if (expression.Argument != null)
     {
         expression.Argument = Visit(expression.Argument);
     }
     return(expression);
 }
Beispiel #2
0
 public override AggregateFunctionExpression VisitAggregateFunction(AggregateFunctionExpression expression)
 {
     builder.Append(expression.Function.ToString().ToLower());
     builder.Append("(");
     if (expression.IsSelectAll)
     {
         builder.Append("*");
     }
     else
     {
         if (expression.IsDistinct)
         {
             builder.Append("distinct ");
         }
         Visit(expression.Argument);
     }
     builder.Append(")");
     return(expression);
 }