Class TaskExecutor
Assembly: FluentMigrator.Runner.Core.dll
Syntax
public class TaskExecutor
Constructors
TaskExecutor(IRunnerContext, AssemblyLoaderFactory, IConnectionStringProvider, Action<IMigrationRunnerBuilder>)
Declaration
[Obsolete]
public TaskExecutor(IRunnerContext runnerContext, AssemblyLoaderFactory assemblyLoaderFactory, IConnectionStringProvider connectionStringProvider = null, Action<IMigrationRunnerBuilder> configureRunner = null)
Parameters
TaskExecutor(IRunnerContext, IConnectionStringProvider, AssemblyLoaderFactory, MigrationProcessorFactoryProvider)
Declaration
[Obsolete("Ony the statically provided factories are accessed")]
public TaskExecutor(IRunnerContext runnerContext, IConnectionStringProvider connectionStringProvider, AssemblyLoaderFactory assemblyLoaderFactory, MigrationProcessorFactoryProvider factoryProvider)
Parameters
TaskExecutor(IRunnerContext, Action<IMigrationRunnerBuilder>)
Declaration
[Obsolete]
public TaskExecutor(IRunnerContext runnerContext, Action<IMigrationRunnerBuilder> configureRunner = null)
Parameters
TaskExecutor(ILogger<TaskExecutor>, IAssemblySource, IOptions<RunnerOptions>, IServiceProvider)
Declaration
public TaskExecutor(ILogger<TaskExecutor> logger, IAssemblySource assemblySource, IOptions<RunnerOptions> runnerOptions, IServiceProvider serviceProvider)
Parameters
Properties
ConnectionStringProvider
Gets the connection string provider
Declaration
[CanBeNull]
[Obsolete]
protected IConnectionStringProvider ConnectionStringProvider { get; }
Property Value
Runner
Gets the current migration runner
Declaration
[CanBeNull]
protected IMigrationRunner Runner { get; set; }
Property Value
ServiceProvider
Gets the service provider used to instantiate all migration services
Declaration
[NotNull]
protected IServiceProvider ServiceProvider { get; }
Property Value
Methods
Execute()
Declaration
GetTargetAssemblies()
Declaration
[Obsolete]
protected virtual IEnumerable<Assembly> GetTargetAssemblies()
Returns
HasMigrationsToApply()
Checks whether the current task will actually run any migrations.
Can be used to decide whether it's necessary perform a backup before the migrations are executed.
Declaration
public bool HasMigrationsToApply()
Returns
Initialize()
Will be called during the runner scope initialization
Declaration
protected virtual void Initialize()