Class PagedResult<T>
Represents a page of results from a paged query.
public sealed class PagedResult<T>
Type Parameters
TThe entity type.
- Inheritance
-
PagedResult<T>
- Inherited Members
Properties
HasNextPage
True when there is a page after this one.
public bool HasNextPage { get; }
Property Value
HasPreviousPage
True when there is a page before this one.
public bool HasPreviousPage { get; }
Property Value
Items
The items on the current page.
public List<T> Items { get; init; }
Property Value
- List<T>
PageNumber
The 1-based page number.
public int PageNumber { get; init; }
Property Value
PageSize
The maximum number of items per page.
public int PageSize { get; init; }
Property Value
TotalItems
Total number of items across all pages.
public long TotalItems { get; init; }
Property Value
TotalPages
Total number of pages.
public int TotalPages { get; }