コード例 #1
0
        public static IList <T> GetPagedResult <T>(this IQueryOver <T> query, PagedRequestDescription description)
        {
            query.Sort(description.JtSortingColumn, description.JtAscending);
            var entities = query.Skip(description.JtStartIndex).Take(description.JtPageSize).List <T>();

            return(entities);
        }