Table of Contents

Class ServiceCollectionExtensions

Namespace
FluentCommand
Assembly
FluentCommand.dll

Extension methods for IServiceCollection

public static class ServiceCollectionExtensions
Inheritance
ServiceCollectionExtensions
Inherited Members

Methods

AddFluentCommand(IServiceCollection, Action<DataConfigurationBuilder>)

Adds the fluent command services with the specified configuration action.

public static IServiceCollection AddFluentCommand(this IServiceCollection services, Action<DataConfigurationBuilder> builder)

Parameters

services IServiceCollection

The IServiceCollection to add services to.

builder Action<DataConfigurationBuilder>

An action builder to configure the fluent command services.

Returns

IServiceCollection

The same service collection so that multiple calls can be chained.

AddFluentCommand(IServiceCollection, string)

Adds the fluent command services with the specified connection string.

public static IServiceCollection AddFluentCommand(this IServiceCollection services, string nameOrConnectionString)

Parameters

services IServiceCollection

The IServiceCollection to add services to.

nameOrConnectionString string

The connection string or the name of connection string located in the application configuration.

Returns

IServiceCollection

The same service collection so that multiple calls can be chained.

AddFluentCommand<TDiscriminator>(IServiceCollection, Action<DataConfigurationBuilder>)

Adds the fluent command services using the TDiscriminator to support typed registration

public static IServiceCollection AddFluentCommand<TDiscriminator>(this IServiceCollection services, Action<DataConfigurationBuilder> builder)

Parameters

services IServiceCollection

The IServiceCollection to add services to.

builder Action<DataConfigurationBuilder>

An action builder to configure the fluent command services.

Returns

IServiceCollection

The same service collection so that multiple calls can be chained.

Type Parameters

TDiscriminator

The type of the discriminator.

AddFluentCommand<TDiscriminator>(IServiceCollection, string)

Adds the fluent command services using the TDiscriminator to support typed registration

public static IServiceCollection AddFluentCommand<TDiscriminator>(this IServiceCollection services, string nameOrConnectionString)

Parameters

services IServiceCollection

The IServiceCollection to add services to.

nameOrConnectionString string

The connection string or the name of connection string located in the application configuration.

Returns

IServiceCollection

The same service collection so that multiple calls can be chained.

Type Parameters

TDiscriminator

The type of the discriminator.