Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 NHibernate.Expression.Order 对象列表,并希望将它们转换为 sql 字符串。
即“名称ASC,ID DESC,金额ASC”
List<string> sqlSortingList = new List<string>(); if (OrderList != null) { foreach (Order order in OrderList) { sqlSortingList.Add(order.ToString()); } }
稍后我会将这些字符串连接成一个字符串。