CQRS.NET  4.0
A lightweight enterprise Function as a Service (FaaS) framework to write function based serverless and micro-service applications in hybrid multi-datacentre, on-premise and Azure environments.
Cqrs.Repositories.IRepository< TQueryStrategy, TData > Interface Template Reference

Provides basic repository methods for operations with an IDataStore<TData>. More...

+ Inheritance diagram for Cqrs.Repositories.IRepository< TQueryStrategy, TData >:

Public Member Functions

void Create (TData data)
 Create the newly provided data to storage. More...
 
void Create (IEnumerable< TData > data)
 Create the newly provided data to storage. More...
 
ISingleResultQuery< TQueryStrategy, TData > Retrieve (ISingleResultQuery< TQueryStrategy, TData > singleResultQuery, bool throwExceptionWhenNoQueryResults=true)
 Builds and executes the provided singleResultQuery . More...
 
ICollectionResultQuery< TQueryStrategy, TData > Retrieve (ICollectionResultQuery< TQueryStrategy, TData > resultQuery)
 Builds and executes the provided resultQuery . More...
 
void Update (TData data)
 Update the provided data in storage. More...
 
void Delete (TData data)
 Will mark the data as logically (or soft). More...
 
void DeleteAll ()
 Delete all contents (normally by use of a truncate operation) in storage. More...
 
void Destroy (TData data)
 Remove the provided data from storage. More...
 
TData Load (Guid rsn, bool throwExceptionOnMissingEntity=true)
 Load the TData from storage identified by the provided rsn . More...
 

Detailed Description

Provides basic repository methods for operations with an IDataStore<TData>.

Type Constraints
TQueryStrategy :IQueryStrategy