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
Fields
NotPaged
Represents a not paged result.
public static readonly PagingInfo NotPaged
Field Value
Properties
Page
The page number.
public int Page { get; init; }
Property Value
Size
The size of the page.
public int Size { get; init; }
Property Value
TotalItems
The total number of items.
public long TotalItems { get; init; }
Property Value
TotalPages
Gets the total number of pages.
public int TotalPages { get; }