Exemplo n.º 1
0
 /// <summary>
 ///     把IOrderedQueryable[T]集合继续按指定属性排序方式进行排序
 /// </summary>
 /// <typeparam name="T">动态类型</typeparam>
 /// <param name="source">要排序的数据集</param>
 /// <param name="propertyName">排序属性名</param>
 /// <param name="sortDirection">排序方向</param>
 /// <returns></returns>
 public static IOrderedQueryable <T> ThenBy <T>(this IOrderedQueryable <T> source, string propertyName,
                                                ListSortDirection sortDirection = ListSortDirection.Ascending)
 {
     PublicHelper.CheckArgument(propertyName, "propertyName");
     return(QueryableHelper <T> .ThenBy(source, propertyName, sortDirection));
 }
Exemplo n.º 2
0
 public static IOrderedQueryable <T> ThenBy <T>(this IOrderedQueryable <T> queryable, string propertyName, bool desc)
 {
     return(QueryableHelper <T> .ThenBy(queryable, propertyName, desc));
 }