DapperDataStore<T, TOptions> Class
Definition
- Namespace
- Savvyio.Extensions.Dapper
- Assemblies
- Savvyio.Extensions.Dapper.dll
Represents the base class from which all implementations of DapperDataStore<T, TOptions> should derive. This is an abstract class to serve as an abstraction layer before the actual I/O communication with a source of data using Dapper.
public abstract class DapperDataStore<T, TOptions> : Disposable, IDisposable, IPersistentDataStore<T, TOptions>, IWritableDataStore<T>, IReadableDataStore<T>, ISearchableDataStore<T, TOptions>, IDeletableDataStore<T>, IDataStore<T> where T : class where TOptions : AsyncOptions, new()
Type Parameters
TThe type of the DTO.
TOptionsThe type of options associated with this DTO.
- Inheritance
-
objectDapperDataStore<T, TOptions>
- Implements
-
IPersistentDataStore<T, TOptions>ISearchableDataStore<T, TOptions>IDataStore<T>
- Derived
- Inherited Members
Constructors
| Name | Description |
|---|---|
| DapperDataStore(IDapperDataSource) | Initializes a new instance of the DapperDataStore<T, TOptions> class. |
Properties
| Name | Description |
|---|---|
| Source | Gets the IDapperDataSource that handles actual I/O communication with a source of data. |
Methods
| Name | Description |
|---|---|
| CreateAsync(T, Action<AsyncOptions>) | Creates the specified |
| DeleteAsync(T, Action<AsyncOptions>) | Deletes the specified |
| FindAllAsync(Action<TOptions>) | Finds all objects matching the specified |
| GetByIdAsync(object, Action<AsyncOptions>) | Loads the object from the specified |
| OnDisposeManagedResources() | Called when this object is being disposed by either Dispose() or Dispose(bool) having |
| UpdateAsync(T, Action<AsyncOptions>) | Updates the specified |