Table of Contents

AddDapperDataStore Method

Definition

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

services IServiceCollection

The IServiceCollection to add the service to.

Returns

IServiceCollection

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

Type Parameters

TService

The type of the DapperDataStore<T, TOptions> abstraction to add.

T

The type of the DTO to use.

Exceptions

ArgumentNullException

services cannot be null.