MigrationsBuilderExtensions

Builder extension methods to register services in DI.

Namespace:
KpokPatagon.Data.Migrations.DependencyInjection
Type:
Class
Public:
Yes
Protected:
No
Sealed:
Yes
Abstract:
Yes

Methods

AddConfigurationReadingServices

Adds the services required to read migrations configurations.

This methods adds to DI a singletons the following services: IScriptHasher, IScriptReaderService and IEmbeddedConfigurationStoreService.

Signature:
public IKpokPatagonBuilder AddConfigurationReadingServices(builder)
Parameters
Name Type Summary
builder IKpokPatagonBuilder An IKpokPatagonBuilder.

AddScriptExecutorService

Adds the ScriptExecutorService to DI.

Signature:
public IKpokPatagonBuilder AddScriptExecutorService(builder, name, options)
Parameters
Name Type Summary
builder IKpokPatagonBuilder An IKpokPatagonBuilder.
name String The name of the script executor service.
options Action<ScriptExecutorServiceOptions> Script executor service configuration options.
Exceptions
Type Summary
ArgumentException Thrown when name is null or empty.
ArgumentNullException Thrown when options is null.

AddTableDscService

Adds the TableDscService to DI.

Signature:
public IKpokPatagonBuilder AddTableDscService(builder, name, options)
Parameters
Name Type Summary
builder IKpokPatagonBuilder An IKpokPatagonBuilder.
name String The name of the table DSC service.
options Action<TableDscServiceOptions> Table DSC service configuration options.
Exceptions
Type Summary
ArgumentException Thrown when name is null or empty.
ArgumentNullException Thrown when options is null.