Beispiel #1
0
        public static ReadOnlyCollection <QueryCommand> Gather(Expression expression)
        {
            CommandGatherer gatherer = new CommandGatherer();

            gatherer.Visit(expression);
            return(gatherer.commands.AsReadOnly());
        }
Beispiel #2
0
 public override string GetQueryText(Expression expression)
 {
     string[] strArray = (from c in CommandGatherer.Gather(this.GetExecutionPlan(expression)) select c.CommandText).ToArray <string>();
     return(string.Join("\n\n", strArray));
 }