public static string[] Gather(Expression expression) { var gatherer = new SqlGatherer(); gatherer.Visit(expression); return(gatherer.commands.ToArray()); }
internal string GetSqlText(Expression expression) { Expression plan = GetExecutionPlan(expression); return(string.Join("\n\n", SqlGatherer.Gather(plan))); }