예제 #1
0
        protected internal virtual Expression VisitCommandAggregate(CommandAggregateExpression cea)
        {
            var commands = VisitCommands(cea.Commands);

            if (cea.Commands != commands)
            {
                return(new CommandAggregateExpression(commands));
            }
            return(cea);
        }
예제 #2
0
 protected internal override Expression VisitCommandAggregate(CommandAggregateExpression cea)
 {
     for (int i = 0, n = cea.Commands.Count; i < n; i++)
     {
         CommandExpression command = cea.Commands[i];
         if (i > 0)
         {
             sb.Append(";");
             this.AppendNewLine(Indentation.Same);
         }
         this.Visit(command);
     }
     return(cea);
 }
예제 #3
0
 protected internal override Expression VisitCommandAggregate(CommandAggregateExpression cea)
 {
     using (InSql())
         return(base.VisitCommandAggregate(cea));
 }
예제 #4
0
 protected virtual bool CompareCommandAggregate(CommandAggregateExpression a, CommandAggregateExpression b)
 {
     return(CompareList(a.Commands, b.Commands, Compare));
 }