Пример #1
0
 /// <summary>
 /// linq倒序多列排序扩展
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="this"></param>
 /// <param name="property"></param>
 /// <returns></returns>
 public static IOrderedQueryable <T> ThenByDescending <T>(this IOrderedQueryable <T> @this, string property)
 {
     return(@this.BuildIOrderedQueryable <T>(property, "ThenByDescending"));
 }
Пример #2
0
 /// <summary>
 /// linq正序多列排序扩展
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="source"></param>
 /// <param name="property"></param>
 /// <returns></returns>
 public static IOrderedQueryable <T> ThenBy <T>(this IOrderedQueryable <T> source, string property)
 {
     return(source.BuildIOrderedQueryable <T>(property, "ThenBy"));
 }