Table of Contents

Class PagedResult<T>

Namespace
CL.MySQL2.Models
Assembly
CL.MySQL2.dll

Represents a page of results from a paged query.

public sealed class PagedResult<T>

Type Parameters

T

The entity type.

Inheritance
PagedResult<T>
Inherited Members

Properties

HasNextPage

True when there is a page after this one.

public bool HasNextPage { get; }

Property Value

bool

HasPreviousPage

True when there is a page before this one.

public bool HasPreviousPage { get; }

Property Value

bool

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

int

PageSize

The maximum number of items per page.

public int PageSize { get; init; }

Property Value

int

TotalItems

Total number of items across all pages.

public long TotalItems { get; init; }

Property Value

long

TotalPages

Total number of pages.

public int TotalPages { get; }

Property Value

int