Table of Contents

Class ServiceCollectionExtensions

Namespace
Axolotl.EFCore
Assembly
Axolotl.EFCore.dll
public static class ServiceCollectionExtensions
Inheritance
ServiceCollectionExtensions
Inherited Members

Methods

RegisterGenericRepositories(IServiceCollection, Type)

public static IServiceCollection RegisterGenericRepositories(this IServiceCollection services, Type repositoryType)

Parameters

services IServiceCollection
repositoryType Type

Returns

IServiceCollection

RegisterUnitOfWork<TContext>(IServiceCollection, bool)

public static IServiceCollection RegisterUnitOfWork<TContext>(this IServiceCollection services, bool pooled = false) where TContext : DbContext

Parameters

services IServiceCollection
pooled bool

Returns

IServiceCollection

Type Parameters

TContext