Nostdlib.Pagination 0.0.1

The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package Nostdlib.Pagination --version 0.0.1
                    
NuGet\Install-Package Nostdlib.Pagination -Version 0.0.1
                    
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="Nostdlib.Pagination" Version="0.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Nostdlib.Pagination" Version="0.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Nostdlib.Pagination" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Nostdlib.Pagination --version 0.0.1
                    
#r "nuget: Nostdlib.Pagination, 0.0.1"
                    
#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.
#:package Nostdlib.Pagination@0.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Nostdlib.Pagination&version=0.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Nostdlib.Pagination&version=0.0.1
                    
Install as a Cake Tool

Pagination Library for .NET

Overview

This library provides a simple and reusable pagination implementation for .NET applications. It includes classes for handling paginated data, pagination options, and utility methods to facilitate data pagination.

Features

  • PageData: Represents a paginated collection of data.

  • PageOptions: Defines pagination parameters (page number and size).

  • PaginatedResult: Extends PageData<T> by adding pagination metadata such as total pages and navigation flags.

  • PaginationExtensions: Provides an extension method to paginate collections easily.

Classes Overview

PageOptions

Defines page number and size with validation.

public class PageOptions
{
public int Page { get; set; }
public int Size { get; set; }
}

PageData<T>

Represents a paged result with a subset of data and total count.

public class PageData<T>
{
    public IEnumerable<T> Entities { get; set; }
    public int TotalCount { get; set; }
}

PaginatedResult<T>

Extends PageData<T> to include pagination metadata.

public class PaginatedResult<T> : PageData<T>
{
    public int TotalPages { get; private set; }
    public bool HasPreviousPage { get; private set; }
    public bool HasNextPage { get; private set; }
}

PaginationExtensions

Extension method for easy pagination on IEnumerable<T>.

public static class PaginationExtensions
{
    public static PageData<T> ToPageData<T>(this IEnumerable<T> source, PageOptions pageOptions);
}
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

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