Table of Contents

Class SeekDefinition<T, TState>

Namespace
Trellis.EntityFrameworkCore
Assembly
Trellis.EntityFrameworkCore.dll

Defines ordering, boundary extraction and lexicographic seeking together. Keys must be non-null and stable, and the final ordering must be unique. Provider translation and comparison semantics must be verified for the selected keys.

public sealed class SeekDefinition<T, TState> where T : class where TState : notnull

Type Parameters

T
TState
Inheritance
SeekDefinition<T, TState>
Inherited Members
Extension Methods

Properties

Codec

The codec for this definition's complete boundary state.

public ICursorCodec<TState> Codec { get; }

Property Value

ICursorCodec<TState>

Methods

ThenAscending<TKey>(Expression<Func<T, TKey>>)

Adds an ascending key using its built-in scalar codec.

public SeekDefinition<T, (TState Primary, TKey Secondary)> ThenAscending<TKey>(Expression<Func<T, TKey>> key) where TKey : notnull, IComparable<TKey>, IParsable<TKey>

Parameters

key Expression<Func<T, TKey>>

Returns

SeekDefinition<T, (TState Primary, TKey Secondary)>

Type Parameters

TKey

ThenAscending<TKey>(Expression<Func<T, TKey>>, ICursorCodec<TKey>)

Adds an ascending key using an explicit codec.

public SeekDefinition<T, (TState Primary, TKey Secondary)> ThenAscending<TKey>(Expression<Func<T, TKey>> key, ICursorCodec<TKey> codec) where TKey : notnull, IComparable<TKey>

Parameters

key Expression<Func<T, TKey>>
codec ICursorCodec<TKey>

Returns

SeekDefinition<T, (TState Primary, TKey Secondary)>

Type Parameters

TKey

ThenDescending<TKey>(Expression<Func<T, TKey>>)

Adds a descending key using its built-in scalar codec.

public SeekDefinition<T, (TState Primary, TKey Secondary)> ThenDescending<TKey>(Expression<Func<T, TKey>> key) where TKey : notnull, IComparable<TKey>, IParsable<TKey>

Parameters

key Expression<Func<T, TKey>>

Returns

SeekDefinition<T, (TState Primary, TKey Secondary)>

Type Parameters

TKey

ThenDescending<TKey>(Expression<Func<T, TKey>>, ICursorCodec<TKey>)

Adds a descending key using an explicit codec.

public SeekDefinition<T, (TState Primary, TKey Secondary)> ThenDescending<TKey>(Expression<Func<T, TKey>> key, ICursorCodec<TKey> codec) where TKey : notnull, IComparable<TKey>

Parameters

key Expression<Func<T, TKey>>
codec ICursorCodec<TKey>

Returns

SeekDefinition<T, (TState Primary, TKey Secondary)>

Type Parameters

TKey

WithCodec(ICursorCodec<TState>)

Replaces serialization without changing ordering, for example to bind query context or protect tokens.

public SeekDefinition<T, TState> WithCodec(ICursorCodec<TState> codec)

Parameters

codec ICursorCodec<TState>

Returns

SeekDefinition<T, TState>