Class TaskExecutor
Assembly: FluentMigrator.Runner.dll
Syntax
public class TaskExecutor
Constructors
|
Edit this page
View Source
TaskExecutor(IRunnerContext)
Declaration
[Obsolete]
public TaskExecutor(IRunnerContext runnerContext)
Parameters
|
Edit this page
View Source
TaskExecutor(IRunnerContext, AssemblyLoaderFactory, IConnectionStringProvider)
Declaration
[Obsolete]
public TaskExecutor(IRunnerContext runnerContext, AssemblyLoaderFactory assemblyLoaderFactory, IConnectionStringProvider connectionStringProvider = null)
Parameters
|
Edit this page
View Source
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
|
Edit this page
View Source
TaskExecutor(ILogger<TaskExecutor>, IAssemblySource, IOptions<RunnerOptions>, IServiceProvider)
Declaration
public TaskExecutor(ILogger<TaskExecutor> logger, IAssemblySource assemblySource, IOptions<RunnerOptions> runnerOptions, IServiceProvider serviceProvider)
Parameters
Properties
|
Edit this page
View Source
ConnectionStringProvider
Gets the connection string provider
Declaration
[CanBeNull]
[Obsolete]
protected IConnectionStringProvider ConnectionStringProvider { get; }
Property Value
|
Edit this page
View Source
Runner
Gets the current migration runner
Declaration
[CanBeNull]
protected IMigrationRunner Runner { get; set; }
Property Value
|
Edit this page
View Source
ServiceProvider
Gets the service provider used to instantiate all migration services
Declaration
[NotNull]
protected IServiceProvider ServiceProvider { get; }
Property Value
Methods
|
Edit this page
View Source
Execute()
Declaration
|
Edit this page
View Source
GetTargetAssemblies()
Declaration
[Obsolete]
protected virtual IEnumerable<Assembly> GetTargetAssemblies()
Returns
|
Edit this page
View Source
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
|
Edit this page
View Source
Initialize()
Will be called during the runner scope initialization
Declaration
protected virtual void Initialize()