/// <summary> /// Sort the given sorted queriable collection in ascending order by a specified member as next order member. /// </summary> /// <typeparam name="T">The generic type of the collection.</typeparam> /// <param name="source">The source ordered queryable collection.</param> /// <param name="member">The specified member to order by.</param> /// <returns>The sorted source as System.Linq.IOrderedQueryable.</returns> public static IOrderedQueryable <T> ThenByMember <T>( this IOrderedQueryable <T> source, string member) { return(source.OrderByMemberUsing(member, ThenBy)); }
/// <summary> /// /// </summary> /// <typeparam name="T"></typeparam> /// <param name="source"></param> /// <param name="memberPath"></param> /// <returns></returns> public static IOrderedQueryable <T> ThenByMemberDescending <T>(this IOrderedQueryable <T> source, string memberPath) { return(source.OrderByMemberUsing(memberPath, "ThenByDescending")); }
public static IOrderedQueryable<T> ThenByMember<T>(this IOrderedQueryable<T> source, string memberPath) { return source.OrderByMemberUsing(memberPath, "ThenBy"); }