Search Results for

    Show / Hide Table of Contents

    Class TaskExecutor

    Inheritance
    object
    TaskExecutor
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: FluentMigrator.Runner.Initialization
    Assembly: FluentMigrator.Runner.dll
    Syntax
    public class TaskExecutor

    Constructors

    | Edit this page View Source

    TaskExecutor(IRunnerContext)

    Declaration
    [Obsolete]
    public TaskExecutor(IRunnerContext runnerContext)
    Parameters
    Type Name Description
    IRunnerContext runnerContext
    | Edit this page View Source

    TaskExecutor(IRunnerContext, AssemblyLoaderFactory, IConnectionStringProvider)

    Declaration
    [Obsolete]
    public TaskExecutor(IRunnerContext runnerContext, AssemblyLoaderFactory assemblyLoaderFactory, IConnectionStringProvider connectionStringProvider = null)
    Parameters
    Type Name Description
    IRunnerContext runnerContext
    AssemblyLoaderFactory assemblyLoaderFactory
    IConnectionStringProvider connectionStringProvider
    | 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
    Type Name Description
    IRunnerContext runnerContext
    IConnectionStringProvider connectionStringProvider
    AssemblyLoaderFactory assemblyLoaderFactory
    MigrationProcessorFactoryProvider factoryProvider
    | 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
    Type Name Description
    ILogger<TaskExecutor> logger
    IAssemblySource assemblySource
    IOptions<RunnerOptions> runnerOptions
    IServiceProvider serviceProvider

    Properties

    | Edit this page View Source

    ConnectionStringProvider

    Gets the connection string provider

    Declaration
    [CanBeNull]
    [Obsolete]
    protected IConnectionStringProvider ConnectionStringProvider { get; }
    Property Value
    Type Description
    IConnectionStringProvider
    | Edit this page View Source

    Runner

    Gets the current migration runner

    Declaration
    [CanBeNull]
    protected IMigrationRunner Runner { get; set; }
    Property Value
    Type Description
    IMigrationRunner
    Remarks

    This will only be set during a migration operation

    | Edit this page View Source

    ServiceProvider

    Gets the service provider used to instantiate all migration services

    Declaration
    [NotNull]
    protected IServiceProvider ServiceProvider { get; }
    Property Value
    Type Description
    IServiceProvider

    Methods

    | Edit this page View Source

    Execute()

    Declaration
    public void Execute()
    | Edit this page View Source

    GetTargetAssemblies()

    Declaration
    [Obsolete]
    protected virtual IEnumerable<Assembly> GetTargetAssemblies()
    Returns
    Type Description
    IEnumerable<Assembly>
    | 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
    Type Description
    bool
    | Edit this page View Source

    Initialize()

    Will be called during the runner scope initialization

    Declaration
    protected virtual void Initialize()
    Remarks

    The Runner isn't initialized yet.

    • Edit this page
    • View Source
    In this article
    Back to top
    Copyright © 2018 Fluent Migrator Project
    Generated by DocFX
    Creative Commons License
    FluentMigrator Documentation by FluentMigrator Project is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.