예제 #1
0
            public static string[] Gather(Expression expression)
            {
                var gatherer = new SqlGatherer();

                gatherer.Visit(expression);
                return(gatherer.commands.ToArray());
            }
예제 #2
0
        internal string GetSqlText(Expression expression)
        {
            Expression plan = GetExecutionPlan(expression);

            return(string.Join("\n\n", SqlGatherer.Gather(plan)));
        }