Struct View
Describes a view transformation (ordering + pagination) applied to a base query. Used as part of ViewKey storage key.
[MessagePackObject(false)]
public readonly struct View
- Inherited Members
Constructors
View(ViewOrdering[], int?, int?)
public View(ViewOrdering[] orderings, int? skip, int? take)
Parameters
orderingsViewOrdering[]skipint?takeint?
Fields
Orderings
[Key(0)]
public readonly ViewOrdering[] Orderings
Field Value
Skip
[Key(1)]
public readonly int? Skip
Field Value
- int?
Take
[Key(2)]
public readonly int? Take
Field Value
- int?
Methods
Equals(View)
public bool Equals(View other)
Parameters
otherView
Returns
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
HasKeyChanged(Row, Row, IEntityInfo)
Removes specified Row entries from permanent cache and updates affected Rows entries.
public bool HasKeyChanged(Row oldRow, Row newRow, IEntityInfo entityInfo)
Parameters
oldRowRownewRowRowentityInfoIEntityInfo
Returns
SortRows(IEntityInfo, IEnumerable<Row>)
Apply ordering specifications to a collection of row entries. Extracts property values from Rows and sorts in memory.
public IEnumerable<Row> SortRows(IEntityInfo entityInfo, IEnumerable<Row> rows)
Parameters
entityInfoIEntityInforowsIEnumerable<Row>
Returns
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.