This type contains the following members.

public interface IRepository<T> where T : Redakt.Data.DocumentStore.IEntity

Methods

GetOneAsync(string, CancellationToken) Retrieves a single entity from the data store by its id.
GetManyAsync(IEnumerable<string>, CancellationToken) Retrieves multiple entities from the data store by their ids.
GetAllAsync(CancellationToken) Retrieves all entities of the requested type from the data store.
FindOneAsync(Expression<Func<T, bool>>, CancellationToken) Queries the data store by filter expression and returns the first result.
FindManyAsync(Expression<Func<T, bool>>, CancellationToken) Queries the data store by filter expression and returns the (optionally paged) results.
CountAsync(Expression<Func<T, bool>>, CancellationToken)
QueryAsync(DocumentQuery<T>, CancellationToken)
UpsertAsync(IEnumerable<T>)
DeleteAsync(IEnumerable<string>)

Extension Methods

DeleteAsync<T>(IRepository<T>, string)
GetCachedOrRetrieveAsync<T>(IRepository<T>, string, IApplicationCache)
GetCachedOrRetrieveAsync<T>(IRepository<T>, IEnumerable<string>, IApplicationCache, Func<T, bool>)
UpsertAsync<T>(IRepository<T>, T)

Implemented by

CosmosDbRepository<T>
DynamoDbRepository<T>
LiteDbDelayedRepository<T>
LiteDbRepository<T>
MongoDbRepository<T>
NoOpRepository<T>
RavenDbRepository<T>