Table of Contents

Class PagingBase<T, R>

Namespace
NuvTools.Data.Paging
Assembly
NuvTools.Data.dll

Base class for paging results with collection data.

public abstract class PagingBase<T, R> where T : IEnumerable<R>

Type Parameters

T

The type of collection (IQueryable or IEnumerable).

R

The type of items in the collection.

Inheritance
PagingBase<T, R>
Derived
Inherited Members

Properties

HasNextPage

Gets or sets whether there are more items beyond the current page.

public bool HasNextPage { get; set; }

Property Value

bool

List

Gets or sets the collection of items for the current page.

public required T List { get; set; }

Property Value

T

PageIndex

Gets or sets the current page index (0-indexed).

public required int PageIndex { get; set; }

Property Value

int

Total

Gets or sets the total number of items across all pages.

public required int Total { get; set; }

Property Value

int