BitzArt.Pagination
1.14.0
Prefix Reserved
dotnet add package BitzArt.Pagination --version 1.14.0
NuGet\Install-Package BitzArt.Pagination -Version 1.14.0
<PackageReference Include="BitzArt.Pagination" Version="1.14.0" />
paket add BitzArt.Pagination --version 1.14.0
#r "nuget: BitzArt.Pagination, 1.14.0"
// 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
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 | Versions 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. |
-
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
EF Core Pagination implementation |
|
BitzArt.CA.Core
Clean Architecture boilerplate. Core library |
|
OCPI.Net.Core
Core package of OCPI.Net |
|
BitzArt.Flux
A universal WebApi client |
|
BitzArt.Communicator
A package that allows communicating with external services easily |
GitHub repositories
This package is not used by any popular GitHub repositories.