Class PagingInfo
- Namespace
- Cratis.Arc.Queries
- Assembly
- Cratis.Arc.Core.dll
Represents the result coming from performing a query with a collection of items.
public record PagingInfo : IEquatable<PagingInfo>
- Inheritance
-
PagingInfo
- Implements
- Inherited Members
- Extension Methods
Constructors
PagingInfo(PagingInfo)
protected PagingInfo(PagingInfo original)
Parameters
originalPagingInfo
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
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
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; }
Property Value
Methods
Deconstruct(out int, out int, out long)
public void Deconstruct(out int Page, out int Size, out long TotalItems)
Parameters
Equals(PagingInfo?)
public virtual bool Equals(PagingInfo? other)
Parameters
otherPagingInfo
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(PagingInfo?, PagingInfo?)
public static bool operator ==(PagingInfo? left, PagingInfo? right)
Parameters
leftPagingInforightPagingInfo
Returns
operator !=(PagingInfo?, PagingInfo?)
public static bool operator !=(PagingInfo? left, PagingInfo? right)
Parameters
leftPagingInforightPagingInfo