BitzArt.Pagination 1.14.0

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
dotnet add package BitzArt.Pagination --version 1.14.0
NuGet\Install-Package BitzArt.Pagination -Version 1.14.0
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="BitzArt.Pagination" Version="1.14.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BitzArt.Pagination --version 1.14.0
#r "nuget: BitzArt.Pagination, 1.14.0"
#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 BitzArt.Pagination as a Cake Addin
#addin nuget:?package=BitzArt.Pagination&version=1.14.0

// Install BitzArt.Pagination as a Cake Tool
#tool nuget:?package=BitzArt.Pagination&version=1.14.0

Pagination

Tests

Overview

This Pagination NuGet package provides efficient pagination capabilities for your C# projects, enabling you to display large data sets conveniently.

Installation

Use with IEnumerable

To use this package with IEnumerable collections, follow these steps:

<ol> <li> Install the package using the .NET CLI:

dotnet add package BitzArt.Pagination

</li> <li> Use it by calling the ToPage method on your collections:

var page = yourEnumerable.ToPage(offset, limit);

</li> </ol>

Use with Entity Framework Core

For Entity Framework Core projects, you can easily integrate the Pagination package: <ol> <li> Install the package:

dotnet add package BitzArt.Pagination.EntityFrameworkCore

</li> <li> Assuming you have a DbContext with a DbSet of your entity type:

public class YourDbContext : DbContext
{
    public DbSet<SomeEntity> Items { get; set; }
    // ...
}

</li> <li> Utilize the ToPageAsync method provided by the package to create paged results:

var dbContext = new YourDbContext();
var paginatedResult = await dbContext.Items.ToPageAsync(offset, limit);

</li> </ol>

Benefits

  • Simplifies the process of paginating data in your application.
  • Optimized for performance and memory efficiency.
  • Compatible with various data sources.
  • Ideal for scenarios where you need to display a portion of a large dataset at a time.
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.
  • net7.0

    • No dependencies.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on BitzArt.Pagination:

Package Downloads
BitzArt.Pagination.EntityFrameworkCore The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

EF Core Pagination implementation

OCPI.Net.Core The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

Core package of OCPI.Net

BitzArt.CA.Core The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

Clean Architecture boilerplate. Core library

BitzArt.Flux The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

A universal WebApi client

BitzArt.Communicator The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

A package that allows communicating with external services easily

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.14.0 4,158 9/7/2023
1.13.0 11,188 1/16/2023