コード例 #1
0
        ICollection <string> GetColumnNames(IEnumerable <SqlOrderExpression> orderList)
        {
            var visitor = new ColumnNameGatherer();

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

            return(visitor.Names);
        }
コード例 #2
0
		ICollection<string> GetColumnNames(IEnumerable<SqlOrderExpression> orderList)
		{
			var visitor = new ColumnNameGatherer();

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

			return visitor.Names;
		}