Table of Contents

Class PagingInfo

Namespace
Cratis.Applications.Queries
Assembly
Cratis.Applications.dll

Represents the result coming from performing a query with a collection of items.

public record PagingInfo : IEquatable<PagingInfo>
Inheritance
PagingInfo
Implements
Inherited Members

Constructors

PagingInfo(int, int, long)

Represents the result coming from performing a query with a collection of items.

public PagingInfo(int Page, int Size, long TotalItems)

Parameters

Page int

The page number.

Size int

The size of the page.

TotalItems long

The total number of items.

Fields

NotPaged

Represents a not paged result.

public static readonly PagingInfo NotPaged

Field Value

PagingInfo

Properties

Page

The page number.

public int Page { get; init; }

Property Value

int

Size

The size of the page.

public int Size { get; init; }

Property Value

int

TotalItems

The total number of items.

public long TotalItems { get; init; }

Property Value

long

TotalPages

Gets the total number of pages.

public int TotalPages { get; }

Property Value

int