Table of Contents

Interface ISearchableDataStore<T, TOptions>

Namespace
Savvyio.Data
Assembly
Savvyio.Core.dll

Defines a generic way of abstracting searchable data access objects (cRud).

public interface ISearchableDataStore<T, out TOptions> : IDataStore<T> where T : class where TOptions : AsyncOptions, new()

Type Parameters

T

The type of the DTO.

TOptions

The type of the options associated with this DTO.

Methods

FindAllAsync(Action<TOptions>)

Finds all objects matching the specified setup asynchronous.

Task<IEnumerable<T>> FindAllAsync(Action<TOptions> setup = null)

Parameters

setup Action<TOptions>

The TOptions which may be configured.

Returns

Task<IEnumerable<T>>

A System.Threading.Tasks.Task<TResult> that represents the asynchronous operation. The task result either contains the matching objects of the operation or an empty sequence if no match was found.

See Also