Class FluentMigratorServiceCollectionExtensions
Extension methods for setting up the migration runner services in an IServiceCollection.
Inherited Members
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: FluentMigrator.Runner.dll
Syntax
public static class FluentMigratorServiceCollectionExtensions
Methods
| Edit this page View SourceAddFluentMigratorCore(IServiceCollection)
Adds migration runner (except the DB processor specific) services to the specified IServiceCollection.
Declaration
[NotNull]
public static IServiceCollection AddFluentMigratorCore(this IServiceCollection services)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The IServiceCollection to add services to. |
Returns
Type | Description |
---|---|
IServiceCollection | The updated service collection |
ConfigureRunner(IServiceCollection, Action<IMigrationRunnerBuilder>)
Configures the migration runner
Declaration
public static IServiceCollection ConfigureRunner(this IServiceCollection services, Action<IMigrationRunnerBuilder> configure)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The IServiceCollection to add services to. |
Action<IMigrationRunnerBuilder> | configure | The IMigrationRunnerBuilder configuration delegate. |
Returns
Type | Description |
---|---|
IServiceCollection | The updated service collection |