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.Sql.DataStores.SqlDataStore< TEntity, TDbEntity > Class Template Reference

A IDataStore<TData> that uses EntityFramework to support complex data structures with SQL Server.s More...

+ Inheritance diagram for Cqrs.Sql.DataStores.SqlDataStore< TEntity, TDbEntity >:

Public Member Functions

 SqlDataStore (IExpressionTreeConverter expressionConverter, DataContext dataContext)
 Instantiates a new instance of the SqlDataStore<TEntity,TDbEntity> class More...
 
IEnumerator< TDbEntity > GetEnumerator ()
 Returns an enumerator that iterates through the collection. More...
 
void Add (TEntity data)
 Add the provided data to the data store and persist the change. More...
 
void Add (IEnumerable< TEntity > data)
 Add the provided data to the data store and persist the change. More...
 
void Remove (TEntity data)
 Will NOT mark the data as logically (or soft) deleted. This will destroy and delete the row in the SQL Server. More...
 
void Destroy (TEntity data)
 Remove the provided data (normally by IEntity.Rsn) from the data store and persist the change. More...
 
void RemoveAll ()
 Remove all contents (normally by use of a truncate operation) from the data store and persist the change. More...
 
void Update (TEntity data)
 Update the provided data in the data store and persist the change. More...
 
void Dispose ()
 Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. More...
 
- Public Member Functions inherited from Cqrs.DataStores.IDataStore< TEntity >
void Add (TData data)
 Add the provided data to the data store and persist the change. More...
 
void Add (IEnumerable< TData > data)
 Add the provided data to the data store and persist the change. More...
 
void Remove (TData data)
 Will mark the data as logically (or soft) deleted by setting Entity.IsDeleted to true in the data store and persist the change. More...
 
void Destroy (TData data)
 Remove the provided data (normally by IEntity.Rsn) from the data store and persist the change. More...
 
void RemoveAll ()
 Remove all contents (normally by use of a truncate operation) from the data store and persist the change. More...
 
void Update (TData data)
 Update the provided data in the data store and persist the change. More...
 

Properties

Expression Expression [get]
 Gets the expression tree that is associated with the instance of T:System.Linq.IQueryable. More...
 
Type ElementType [get]
 Gets the type of the element(s) that are returned when the expression tree associated with this instance of T:System.Linq.IQueryable is executed. More...
 
IQueryProvider Provider [get]
 Gets the query provider that is associated with this data source. More...
 

Detailed Description

A IDataStore<TData> that uses EntityFramework to support complex data structures with SQL Server.s

Type Constraints
TDbEntity :class 
TDbEntity :new()