Interface IDataStore<TData>
A data store capable of being queried and modified.
Inherited Members
System.Collections.Generic.IEnumerable<TData>.GetEnumerator()
System.Linq.IQueryable.Expression
System.Linq.IQueryable.ElementType
System.Linq.IQueryable.Provider
System.IDisposable.Dispose()
Namespace: Cqrs.DataStores
Assembly: Cqrs.dll
Syntax
public interface IDataStore<TData> : IOrderedQueryable<TData>, IQueryable<TData>, IEnumerable<TData>, IOrderedQueryable, IQueryable, IEnumerable, IDisposable
Type Parameters
Name | Description |
---|---|
TData |
Methods
Add(TData)
Add the provided data
to the data store and persist the change.
Declaration
void Add(TData data)
Parameters
Type | Name | Description |
---|---|---|
TData | data |
Add(IEnumerable<TData>)
Add the provided data
to the data store and persist the change.
Declaration
void Add(IEnumerable<TData> data)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<TData> | data |
Destroy(TData)
Remove the provided data
(normally by Rsn) from the data store and persist the change.
Declaration
void Destroy(TData data)
Parameters
Type | Name | Description |
---|---|---|
TData | data |
Remove(TData)
Will mark the data
as logically (or soft) deleted by setting IsLogicallyDeleted to true in the data store and persist the change.
Declaration
void Remove(TData data)
Parameters
Type | Name | Description |
---|---|---|
TData | data |
RemoveAll()
Remove all contents (normally by use of a truncate operation) from the data store and persist the change.
Declaration
void RemoveAll()
Update(TData)
Update the provided data
in the data store and persist the change.
Declaration
void Update(TData data)
Parameters
Type | Name | Description |
---|---|---|
TData | data |