Sakura.AspNetCore.Extensions/Sakura.AspNetCore.PagedList/PagedListCreationHelper.cs
/// <summary>
///     Convert <see cref="IQueryable{T}" /> object into a <see cref="DynamicQueryablePagedList{T}" /> object.
/// </summary>
/// <typeparam name="T">The element type in the data source.</typeparam>
/// <param name="source">The source <see cref="IQueryable{T}" /> object to be converting.</param>
/// <param name="pageSize">The size of each page.</param>
/// <param name="pageIndex">The index of the current page. Page index starts from 1.</param>
/// <param name="cacheOptions">Options for the paged list.</param>
/// <returns>A <see cref="DynamicQueryablePagedList{T}" /> object created by paging the <paramref name="source" /> object.</returns>
Convert  object into a  object.
Convert object into a object .
public static DynamicQueryablePagedList<T> ToDynamicPagedList<T>(this IQueryable<T> source, int pageSize,
			int pageIndex = 1,
			DynamicPagedListCacheOptions cacheOptions = null)
		{
			return new DynamicQueryablePagedList<T>(source, pageSize, pageIndex, cacheOptions);
		}
public static DynamicQueryablePagedList < T > ToDynamicPagedList < T > ( this IQueryable < T > source , int pageSize , int pageIndex = 1 , DynamicPagedListCacheOptions cacheOptions = null ) { return new DynamicQueryablePagedList < T > ( source , pageSize , pageIndex , cacheOptions ) ; }
Convert  object into a  object.
Convert object into a object .
A  object created by paging the  object.
A object created by paging the object .
IQueryable<T>
this
pageSize
int
The size of each page.
The size of each page .
pageIndex
int
The index of the current page. Page index starts from 1.
The index of the current page . Page index starts from 1 .
cacheOptions
DynamicPagedListCacheOptions
Options for the paged list.
Options for the paged list .
source
The source  object to be converting.
The source object to be converting .
typeparam
The element type in the data source.
The element type in the data source .