This project has moved and is read-only. For the latest updates, please go here.

System.Linq.IQueryable extension methods

ToPaginatedList(int pageIndex, int pageSize)

Summary: Returns a PaginatedList based on the specified IQueryable and page index and page size. The total count is gathered from the query itself.
C# Example:
var page = query.ToPaginatedList(0, 25);

ToPaginatedList(int pageIndex, int pageSize, int totalCount)

Summary: Returns a PaginatedList based on the specified IQueryable with the specified page index, page size and total count set. This is for using when the IQueryable already contains a known subset of the full query.
C# Example:
var page = query.ToPaginatedList(0, 25, 124);

Last edited May 4, 2012 at 3:11 PM by crpietschmann, version 2

Comments

No comments yet.