Table of Contents

Struct View

Namespace
The.Caching
Assembly
Instagile.dll

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

orderings ViewOrdering[]
skip int?
take int?

Fields

Orderings

[Key(0)]
public readonly ViewOrdering[] Orderings

Field Value

ViewOrdering[]

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

other View

Returns

bool

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

oldRow Row
newRow Row
entityInfo IEntityInfo

Returns

bool

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

entityInfo IEntityInfo
rows IEnumerable<Row>

Returns

IEnumerable<Row>

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.