Interface ISearchableRepository<TEntity, TKey>
- Namespace
- Savvyio.Domain
- Assembly
- Savvyio.Core.dll
Defines a generic way of abstracting searchable repositories (cRud).
public interface ISearchableRepository<TEntity, TKey> : IRepository<TEntity, TKey> where TEntity : class, IIdentity<TKey>
Type Parameters
TEntity
The type of the entity.
TKey
The type of the key that uniquely identifies the entity.
Methods
FindAllAsync(Expression<Func<TEntity, Boolean>>, Action<AsyncOptions>)
Finds all entities matching the specified predicate
asynchronous.
Task<IEnumerable<TEntity>> FindAllAsync(Expression<Func<TEntity, bool>> predicate = null, Action<AsyncOptions> setup = null)
Parameters
predicate
Expression<Func<TEntity, Boolean>>The predicate that matches the entities to retrieve.
setup
Action<AsyncOptions>The AsyncOptions which may be configured.
Returns
- Task<IEnumerable<TEntity>>
A System.Threading.Tasks.Task<TResult> that represents the asynchronous operation. The task result either contains the matching entities of the operation or an empty sequence if no match was found.
See Also
IRepository<TEntity, TKey>