Class Paging
- Namespace
- Cratis.Arc.Queries
- Assembly
- Cratis.Arc.Core.dll
Represents paging for a query.
public record Paging : IEquatable<Paging>
- Inheritance
-
Paging
- Implements
- Inherited Members
- Extension Methods
Constructors
Paging(PageNumber, PageSize, bool)
Initializes a new instance of the Paging class.
public Paging(PageNumber page, PageSize size, bool isPaged)
Parameters
pagePageNumberThe page number.
sizePageSizeThe size of a page.
isPagedboolWhether or not paging is to be used.
Paging(Paging)
protected Paging(Paging original)
Parameters
originalPaging
Fields
NotPaged
Represents a not paged result.
public static readonly Paging NotPaged
Field Value
Properties
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
IsPaged
Whether paging is to be used.
public bool IsPaged { get; }
Property Value
Page
The page number.
public PageNumber Page { get; }
Property Value
Size
The size of a page.
public PageSize Size { get; }
Property Value
Skip
Gets the number of items to skip.
public int Skip { get; }
Property Value
Remarks
The multiplication is performed in 64-bit and clamped to the non-negative int range: a hostile or
malformed page/size (for example page=999999999 with a very large page size) would otherwise overflow the
32-bit product into a negative value and surface as a server error when passed to the underlying data source.
Methods
Equals(Paging?)
public virtual bool Equals(Paging? other)
Parameters
otherPaging
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 ==(Paging?, Paging?)
public static bool operator ==(Paging? left, Paging? right)
Parameters
Returns
operator !=(Paging?, Paging?)
public static bool operator !=(Paging? left, Paging? right)