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
keyExpression<Func<T, TKey>>
Returns
- SeekDefinition<T, TKey>
Type Parameters
TTKey
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
keyExpression<Func<T, TKey>>codecICursorCodec<TKey>
Returns
- SeekDefinition<T, TKey>
Type Parameters
TTKey
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
keyExpression<Func<T, TKey>>
Returns
- SeekDefinition<T, TKey>
Type Parameters
TTKey
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
keyExpression<Func<T, TKey>>codecICursorCodec<TKey>
Returns
- SeekDefinition<T, TKey>
Type Parameters
TTKey