AddDapperDataStore Method
Definition
- Namespace
- Savvyio.Extensions.DependencyInjection.Dapper
- Assemblies
- Savvyio.Extensions.DependencyInjection.Dapper.dll
AddDapperDataStore<TService, T>(IServiceCollection)
Adds an implementation of DapperDataStore<T, TOptions> to the specified IServiceCollection.
public static IServiceCollection AddDapperDataStore<TService, T>(this IServiceCollection services) where TService : DapperDataStore<T, DapperQueryOptions> where T : class
Parameters
servicesIServiceCollectionThe IServiceCollection to add the service to.
Returns
- IServiceCollection
A reference to
servicesso that additional calls can be chained.
Type Parameters
TServiceThe type of the DapperDataStore<T, TOptions> abstraction to add.
TThe type of the DTO to use.
Exceptions
- ArgumentNullException
servicescannot be null.