Пример #1
0
            private ICollection <string> GetColumnNames(IEnumerable <SqlOrderExpression> orderList)
            {
                var gatherer = new ColumnNameGatherer();

                foreach (SqlOrderExpression expression in orderList)
                {
                    gatherer.Visit(expression.Expression);
                }
                return(gatherer.Names);
            }
            ICollection <string> GetColumnNames(IEnumerable <SqlOrderExpression> orderList)
            {
                var visitor = new ColumnNameGatherer();

                foreach (var expr in orderList)
                {
                    visitor.Visit(expr.Expression);
                }

                return(visitor.Names);
            }
Пример #3
0
            ICollection<string> GetColumnNames(IEnumerable<SqlOrderExpression> orderList)
            {
                var visitor = new ColumnNameGatherer();

                foreach (var expr in orderList) {
                    visitor.Visit(expr.Expression);
                }

                return visitor.Names;
            }