Interface IIndexKeyBuilder<TEntity>
Builds the ordered keys of a composite index with typed selectors.
public interface IIndexKeyBuilder<TEntity> where TEntity : class
Type Parameters
TEntityThe entity type.
Methods
Ascending<TField>(Expression<Func<TEntity, TField>>)
Appends an ascending key.
IIndexKeyBuilder<TEntity> Ascending<TField>(Expression<Func<TEntity, TField>> field)
Parameters
fieldExpression<Func<TEntity, TField>>The field selector.
Returns
- IIndexKeyBuilder<TEntity>
Type Parameters
TFieldThe field type.
Descending<TField>(Expression<Func<TEntity, TField>>)
Appends a descending key.
IIndexKeyBuilder<TEntity> Descending<TField>(Expression<Func<TEntity, TField>> field)
Parameters
fieldExpression<Func<TEntity, TField>>The field selector.
Returns
- IIndexKeyBuilder<TEntity>
Type Parameters
TFieldThe field type.