CQRS.NET  2.1
A lightweight enterprise framework to write CQRS, event-sourced and micro-service applications in hybrid multi-datacentre, on-premise and Azure environments.
Cqrs.Repositories.Repository< TQueryStrategy, TQueryBuilder, TData > Class Template Reference
+ Inheritance diagram for Cqrs.Repositories.Repository< TQueryStrategy, TQueryBuilder, TData >:

Public Member Functions

virtual void Create (TData data)
 
virtual void Create (IEnumerable< TData > data)
 
virtual ISingleResultQuery< TQueryStrategy, TData > Retrieve (ISingleResultQuery< TQueryStrategy, TData > singleResultQuery, bool throwExceptionWhenNoQueryResults=true)
 
virtual ICollectionResultQuery< TQueryStrategy, TData > Retrieve (ICollectionResultQuery< TQueryStrategy, TData > resultQuery)
 
virtual void Update (TData data)
 
virtual void Delete (TData data)
 Will mark the data as logically (or soft). More...
 
virtual void DeleteAll ()
 
void Destroy (TData data)
 
virtual TData Load (Guid rsn, bool throwExceptionOnMissingEntity=true)
 

Protected Member Functions

 Repository (Func< IDataStore< TData >> createDataStoreFunction, TQueryBuilder queryBuilder)
 
virtual IQueryable< TData > CreateQueryable (Expression< Func< TData, bool >> predicate)
 

Properties

Func< IDataStore< TData > > CreateDataStoreFunction [get]
 
TQueryBuilder QueryBuilder [get]
 
ITelemetryHelper TelemetryHelper [get, set]