public static IQueryable <T> EasyuiSort <T>(this IQueryable <T> source, IEasyuiSorter sorter) { var s = new QueryableEasyuiSorter <T>(sorter, new SortByPropertyResolver <T>()); var re = s.Sort(source); return(re); }
public QueryableEasyuiSorter(IEasyuiSorter easyuiSorter, ISotyByPropertyResolver <T> sotyByPropertyResolver) { _sotyByPropertyResolver = sotyByPropertyResolver; SortBy = easyuiSorter.SortBy; Order = easyuiSorter.Order; }