public static ReadOnlyCollection <QueryCommand> Gather(Expression expression) { CommandGatherer gatherer = new CommandGatherer(); gatherer.Visit(expression); return(gatherer.commands.AsReadOnly()); }
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)); }