Пример #1
0
 /// <summary>
 /// 返回ISourceReader
 /// </summary>
 /// <param name="pageIndex"></param>
 /// <returns></returns>
 public SourceReader ToReader(int pageIndex)
 {
     return(query.GetPage(pageSize).ToReader(pageIndex));
 }
Пример #2
0
 /// <summary>
 /// 返回一个分页处理的Page节
 /// </summary>
 /// <typeparam name="TResult"></typeparam>
 /// <param name="pageSize"></param>
 /// <returns></returns>
 public PageSection <TEntity> GetPage <TEntity>(int pageSize)
     where TEntity : Entity
 {
     return(query.GetPage <TEntity>(pageSize));
 }
Пример #3
0
 /// <summary>
 /// 返回一个分页处理的Page节
 /// </summary>
 /// <param name="pageSize"></param>
 /// <returns></returns>
 public PageSection <T> GetPage(int pageSize)
 {
     return(query.GetPage(pageSize));
 }