Class DapperDataSource<TMarker>
- Namespace
- Savvyio.Extensions.DependencyInjection.Dapper
- Assembly
- Savvyio.Extensions.DependencyInjection.Dapper.dll
Provides a default implementation of the IDapperDataSource<TMarker> interface to support the actual I/O communication with a source of data using Dapper.
public class DapperDataSource<TMarker> : DapperDataSource, IDapperDataSource<TMarker>, IDapperDataSource, IDbConnection, IDisposable, IDataSource<TMarker>, IDataSource, IDependencyInjectionMarker<TMarker>
Type Parameters
TMarkerThe type used to mark the implementation that this data store represents. Optimized for Microsoft Dependency Injection.
- Inheritance
-
DapperDataSource<TMarker>
- Implements
-
IDapperDataSource<TMarker>IDataSource<TMarker>IDependencyInjectionMarker<TMarker>
- Inherited Members
Constructors
DapperDataSource(DapperDataSourceOptions<TMarker>)
Initializes a new instance of the DapperDataSource<TMarker> class.
public DapperDataSource(DapperDataSourceOptions<TMarker> options)
Parameters
optionsDapperDataSourceOptions<TMarker>The DapperDataSourceOptions<TMarker> used to configure this instance.
Exceptions
- ArgumentNullException
optionscannot be null.- ArgumentException
optionsare not in a valid state.
See Also
IDapperDataSource<TMarker>