Class ServiceCollectionExtensions
- Assembly
- Savvyio.Extensions.DependencyInjection.DapperExtensions.dll
Extension methods for the IServiceCollection interface.
public static class ServiceCollectionExtensions
- Inheritance
-
ServiceCollectionExtensions
Methods
AddDapperExtensionsDataStore<T>(IServiceCollection)
Adds an implementation of DapperExtensionsDataStore<T> to the specified IServiceCollection.
public static IServiceCollection AddDapperExtensionsDataStore<T>(this IServiceCollection services) 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
TThe type of the DTO to use.
Exceptions
- ArgumentNullException
servicescannot be null.
AddDapperExtensionsDataStore<T, TMarker>(IServiceCollection)
Adds an implementation of DapperExtensionsDataStore<T> to the specified IServiceCollection.
public static IServiceCollection AddDapperExtensionsDataStore<T, TMarker>(this IServiceCollection services) 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
TThe type of the DTO to use.
TMarkerThe type used to mark the implementation that this data access object represents. Optimized for DapperExtensions.
Exceptions
- ArgumentNullException
servicescannot be null.