Skip to content

Paging.NET is a basic toolkit which provides incremential server-side data loads.

Notifications You must be signed in to change notification settings

thomasgalliker/Paging.NET

Repository files navigation

Paging.NET

Version Downloads

Paging.NET

Paging provides tools which are commonly used for handling paged data loading.

Download and Install Paging.NET

This library is available on NuGet: https://www.nuget.org/packages/Paging.NET/ Use the following command to install Paging using NuGet package manager console:

PM> Install-Package Paging.NET

You can use this library in any .Net project which is compatible to .Net Standard 1.0 and higher as well as with legacy PCL projects.

Latest Builds

Paging.NET Paging.Forms.NET Paging.Queryable.NET
Version Version Version Version
Pre-Release Version Version Version
Downloads Downloads Downloads Downloads

API Usage

Paging or pagination is a process of slicing a certain (usually big and costly) collection into subsets of items in order to improve query performance. Paging is not only a matter of splitting collections into chunks, it also has to consider sorting and filtering. Paging involves the requesting client in specifying a paging request and the responding service to respond with a result set.

In Paging.NET, each paging request is specified in a PagingInfo. The resulting page is returned in a PaginationSet.

  • PagingInfo allows to define which page index we want to retrieve (CurrentPage), how many items each page shall contain (ItemsPerPage), how the collection is sorted before it is paged (SortBy resp. Sorting) and if we like to apply a filter (Search resp. Filter) on the target collection.
  • PaginationSet sends the subset of Items along with some meta information, like the current page's zero-based index CurrentPage, the total number of pages TotalPages, the total number of items TotalCount (unfiltered: TotalCountUnfiltered).
TODO: Document the usage of PagingInfo and PaginationSet in some concrete examples

Contribution

Contributors welcome! If you find a bug or you want to propose a new feature, feel free to do so by opening a new issue on github.com.

License

This project is Copyright © 2019 Thomas Galliker. Free for non-commercial use. For commercial use please contact the author.

About

Paging.NET is a basic toolkit which provides incremential server-side data loads.

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published