Table of Contents

Class SeekDefinition

Namespace
Trellis.EntityFrameworkCore
Assembly
Trellis.EntityFrameworkCore.dll

Factories for storage-translatable seek definitions. Does not perform client-side query fallback.

public static class SeekDefinition
Inheritance
SeekDefinition
Inherited Members

Methods

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

Starts an ascending ordering with a built-in scalar codec.

public static SeekDefinition<T, TKey> Ascending<T, TKey>(Expression<Func<T, TKey>> key) where T : class where TKey : notnull, IComparable<TKey>, IParsable<TKey>

Parameters

key Expression<Func<T, TKey>>

Returns

SeekDefinition<T, TKey>

Type Parameters

T
TKey

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

Starts an ascending ordering with an explicit codec.

public static SeekDefinition<T, TKey> Ascending<T, TKey>(Expression<Func<T, TKey>> key, ICursorCodec<TKey> codec) where T : class where TKey : notnull, IComparable<TKey>

Parameters

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

Returns

SeekDefinition<T, TKey>

Type Parameters

T
TKey

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

Starts a descending ordering with a built-in scalar codec.

public static SeekDefinition<T, TKey> Descending<T, TKey>(Expression<Func<T, TKey>> key) where T : class where TKey : notnull, IComparable<TKey>, IParsable<TKey>

Parameters

key Expression<Func<T, TKey>>

Returns

SeekDefinition<T, TKey>

Type Parameters

T
TKey

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

Starts a descending ordering with an explicit codec.

public static SeekDefinition<T, TKey> Descending<T, TKey>(Expression<Func<T, TKey>> key, ICursorCodec<TKey> codec) where T : class where TKey : notnull, IComparable<TKey>

Parameters

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

Returns

SeekDefinition<T, TKey>

Type Parameters

T
TKey