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
TThe type of collection (IQueryable or IEnumerable).
RThe 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
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
Total
Gets or sets the total number of items across all pages.
public required int Total { get; set; }