Table of Contents

Class ServiceCollectionExtensions

Namespace
Savvyio.Extensions.DependencyInjection.DapperExtensions
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

services IServiceCollection

The IServiceCollection to add the service to.

Returns

IServiceCollection

A reference to services so that additional calls can be chained.

Type Parameters

T

The type of the DTO to use.

Exceptions

ArgumentNullException

services cannot 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

services IServiceCollection

The IServiceCollection to add the service to.

Returns

IServiceCollection

A reference to services so that additional calls can be chained.

Type Parameters

T

The type of the DTO to use.

TMarker

The type used to mark the implementation that this data access object represents. Optimized for DapperExtensions.

Exceptions

ArgumentNullException

services cannot be null.