Search Results for

    Show / Hide Table of Contents

    Interface IRunnerContext

    Namespace: FluentMigrator.Runner.Initialization
    Assembly: FluentMigrator.Runner.Core.dll
    Syntax
    [Obsolete]
    public interface IRunnerContext

    Properties

    | Edit this page View Source

    AllowBreakingChange

    Gets or sets a value indicating whether the migration runner is allowed to apply breaking changes

    Declaration
    bool AllowBreakingChange { get; set; }
    Property Value
    Type Description
    bool
    Remarks

    The option is now stored in AllowBreakingChange.

    | Edit this page View Source

    Announcer

    Gets or sets the announcer to use

    Declaration
    IAnnouncer Announcer { get; }
    Property Value
    Type Description
    IAnnouncer
    | Edit this page View Source

    ApplicationContext

    Gets or sets the arbitrary application context passed to the task runner

    Declaration
    [Obsolete("Use dependency injection to access 'application state'.")]
    object ApplicationContext { get; set; }
    Property Value
    Type Description
    object
    | Edit this page View Source

    Connection

    Gets or sets the connection string (or name)

    Declaration
    string Connection { get; set; }
    Property Value
    Type Description
    string
    Remarks

    Will not be used when PreviewOnly is active. The option is now directly stored in ConnectionString

    | Edit this page View Source

    ConnectionStringConfigPath

    Gets or sets the path to an app.config/web.config to load the connection string from

    Declaration
    string ConnectionStringConfigPath { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Database

    Gets or sets the identifier of the processor to use

    Declaration
    [Obsolete("A preselection must happen during the migration runner configuration")]
    string Database { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    DefaultSchemaName

    Gets or sets the default schema name

    Declaration
    string DefaultSchemaName { get; set; }
    Property Value
    Type Description
    string
    Remarks

    The default schema name must be set using the SchemaConvention

    | Edit this page View Source

    Namespace

    Gets or sets the root namespace for filtering

    Declaration
    string Namespace { get; set; }
    Property Value
    Type Description
    string
    Remarks

    The option is now directly stored in Namespace.

    | Edit this page View Source

    NestedNamespaces

    Gets or sets the value indicating whether all sub-namespaces should be included

    Declaration
    bool NestedNamespaces { get; set; }
    Property Value
    Type Description
    bool
    Remarks

    The option is now directly stored in NestedNamespaces.

    | Edit this page View Source

    NoConnection

    Gets or sets a value indicating whether no connection should be used

    Declaration
    bool NoConnection { get; set; }
    Property Value
    Type Description
    bool
    Remarks

    The difference between this and PreviewOnly is, that the preview-only mode uses the connection to determine the current state of the database.

    | Edit this page View Source

    PreviewOnly

    Gets or sets a value indicating whether a preview-only mode is active

    Declaration
    bool PreviewOnly { get; set; }
    Property Value
    Type Description
    bool
    Remarks

    The option is now directly stored in PreviewOnly

    | Edit this page View Source

    Profile

    Gets or sets the profile migrations to apply

    Declaration
    string Profile { get; set; }
    Property Value
    Type Description
    string
    Remarks

    The option is now stored in Profile.

    | Edit this page View Source

    ProviderSwitches

    Gets or sets the provider switches

    Declaration
    string ProviderSwitches { get; set; }
    Property Value
    Type Description
    string
    Remarks

    The option is now stored in PreviewOnly.

    | Edit this page View Source

    StartVersion

    Gets or sets the start version

    Declaration
    long StartVersion { get; set; }
    Property Value
    Type Description
    long
    Remarks

    The option is now stored in StartVersion.

    | Edit this page View Source

    Steps

    Gets or sets the number of versions to apply

    Declaration
    int Steps { get; set; }
    Property Value
    Type Description
    int
    Remarks

    The option is now stored in Steps.

    | Edit this page View Source

    StopWatch

    Gets or sets the stopwatch to use

    Declaration
    IStopWatch StopWatch { get; }
    Property Value
    Type Description
    IStopWatch
    | Edit this page View Source

    StripComments

    Gets or sets a value indicating whether the comments should be stripped

    Declaration
    bool StripComments { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    Tags

    Gets or sets the tags the migrations must match

    Declaration
    IEnumerable<string> Tags { get; set; }
    Property Value
    Type Description
    IEnumerable<string>
    Remarks

    All migrations are matched when no tags were specified. The option is now stored in Tags.

    | Edit this page View Source

    Targets

    Gets or sets the assembly names

    Declaration
    string[] Targets { get; set; }
    Property Value
    Type Description
    string[]
    Remarks

    The option is now stored in AssemblyNames

    | Edit this page View Source

    Task

    Gets or sets the task to execute

    Declaration
    string Task { get; set; }
    Property Value
    Type Description
    string
    Remarks

    The option is now stored in Task.

    | Edit this page View Source

    Timeout

    Gets or sets the default command timeout in seconds

    Declaration
    int? Timeout { get; set; }
    Property Value
    Type Description
    int?
    | Edit this page View Source

    TransactionPerSession

    Use one transaction for the whole session

    Declaration
    bool TransactionPerSession { get; set; }
    Property Value
    Type Description
    bool
    Remarks

    The default transaction behavior is to use one transaction per migration. The option is now stored in TransactionPerSession.

    | Edit this page View Source

    Version

    Gets or sets the target version

    Declaration
    long Version { get; set; }
    Property Value
    Type Description
    long
    Remarks

    The option is now stored in Version.

    | Edit this page View Source

    WorkingDirectory

    Gets or sets the working directory

    Declaration
    string WorkingDirectory { get; set; }
    Property Value
    Type Description
    string
    • 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.