LinqPaginator 1.0.6

There is a newer version of this package available.
See the version list below for details.
dotnet add package LinqPaginator --version 1.0.6
NuGet\Install-Package LinqPaginator -Version 1.0.6
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="LinqPaginator" Version="1.0.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LinqPaginator --version 1.0.6
#r "nuget: LinqPaginator, 1.0.6"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install LinqPaginator as a Cake Addin
#addin nuget:?package=LinqPaginator&version=1.0.6

// Install LinqPaginator as a Cake Tool
#tool nuget:?package=LinqPaginator&version=1.0.6

For queries that return a lot of data, a need emerges to consume the results in chunks rather than the entire set. Consuming all results at once can be costly in terms of network traffic thus slowing down your application.

Linq Paginator allows you to run your queries and return your data in form of pages. A page contains a set number of items to return per page e.g 20. If for example you have 100 records, it will return the following object:

{
    "page": 1,
    "perpage": 20,
    "total": 100,
    "totalpages": 5,
    "items": [...]
}

The last property items is a collection of records in the current page and contains (n) number of items where n is the number of items to return per page, perpage

Usage

First import the namespace as shown below

using Paginator;
using Paginator.Models;
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp1.0 is compatible.  netcoreapp1.1 is compatible.  netcoreapp2.0 is compatible.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard1.5 is compatible.  netstandard1.6 is compatible.  netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net46 is compatible.  net461 is compatible.  net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen30 was computed.  tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.2.7 706 3/16/2021
1.2.6 2,370 10/5/2020
1.2.5 497 9/28/2020
1.2.4 558 3/4/2020
1.2.3 610 9/7/2019
1.2.2 540 9/6/2019
1.2.1 509 9/6/2019
1.2.0 522 9/6/2019
1.1.0 583 7/24/2019
1.1.0-beta 395 6/26/2019
1.0.6 579 4/14/2019
1.0.5 615 2/17/2019
1.0.4 617 2/9/2019
1.0.3 661 2/6/2019
1.0.2 1,135 3/3/2018
1.0.1 914 3/2/2018
1.0.0 1,088 1/21/2018

Updates the library to support projects that target the following frameworks:
- netcoreapp1.0
- netcoreapp1.1
- netcoreapp2.0
- net46
- net461
- net462
- netstandard1.5
- netstandard1.6
- netstandard2.0