Search Results for

    Show / Hide Table of Contents

    Interface IMigrationRunner

    The migration runner

    Inherited Members
    IMigrationScopeStarter.BeginScope()
    Namespace: FluentMigrator.Runner
    Assembly: FluentMigrator.Runner.dll
    Syntax
    public interface IMigrationRunner : IMigrationScopeStarter

    Properties

    | Improve this Doc View Source

    MigrationAssemblies

    Gets the assemblies searched for migrations, profile migrations, etc...

    Declaration
    IAssemblyCollection MigrationAssemblies { get; }
    Property Value
    Type Description
    IAssemblyCollection
    | Improve this Doc View Source

    MigrationLoader

    Gets or sets the migration loader to be used by this migration runner

    Declaration
    IMigrationInformationLoader MigrationLoader { get; }
    Property Value
    Type Description
    IMigrationInformationLoader
    | Improve this Doc View Source

    Processor

    Gets the migration processor used by this runner

    Declaration
    IMigrationProcessor Processor { get; }
    Property Value
    Type Description
    IMigrationProcessor
    | Improve this Doc View Source

    RunnerContext

    Gets the runner context

    Declaration
    IRunnerContext RunnerContext { get; }
    Property Value
    Type Description
    IRunnerContext

    Methods

    | Improve this Doc View Source

    Down(IMigration)

    Executes an Down migration

    Declaration
    void Down(IMigration migration)
    Parameters
    Type Name Description
    IMigration migration

    The migration to execute

    | Improve this Doc View Source

    HasMigrationsToApplyDown(Int64)

    Returns true when there are migrations to revert

    Declaration
    bool HasMigrationsToApplyDown(long version)
    Parameters
    Type Name Description
    Int64 version

    The target version

    Returns
    Type Description
    Boolean

    true when there are migrations to revert

    | Improve this Doc View Source

    HasMigrationsToApplyRollback()

    Are there migrations available for a rollback?

    Declaration
    bool HasMigrationsToApplyRollback()
    Returns
    Type Description
    Boolean

    true when there are migrations available for a rollback

    | Improve this Doc View Source

    HasMigrationsToApplyUp(Nullable<Int64>)

    Returns true when there are migrations to apply

    Declaration
    bool HasMigrationsToApplyUp(long? version = null)
    Parameters
    Type Name Description
    Nullable<Int64> version

    The target version (or null if the last one should be used)

    Returns
    Type Description
    Boolean

    true when there are migrations to apply

    | Improve this Doc View Source

    ListMigrations()

    List all migrations to the logger

    Declaration
    void ListMigrations()
    | Improve this Doc View Source

    MigrateDown(Int64)

    Migrate down to the given version

    Declaration
    void MigrateDown(long version)
    Parameters
    Type Name Description
    Int64 version

    The version to migrate down to

    | Improve this Doc View Source

    MigrateUp()

    Executes all found (and unapplied) migrations

    Declaration
    void MigrateUp()
    | Improve this Doc View Source

    MigrateUp(Int64)

    Executes all found (and unapplied) migrations up to the given version

    Declaration
    void MigrateUp(long version)
    Parameters
    Type Name Description
    Int64 version

    The target version to migrate to (inclusive)

    | Improve this Doc View Source

    Rollback(Int32)

    Rollback the given number of steps

    Declaration
    void Rollback(int steps)
    Parameters
    Type Name Description
    Int32 steps

    The number of steps to rollback

    | Improve this Doc View Source

    RollbackToVersion(Int64)

    Rollback to a given version

    Declaration
    void RollbackToVersion(long version)
    Parameters
    Type Name Description
    Int64 version

    The target version to rollback to

    | Improve this Doc View Source

    Up(IMigration)

    Executes an Up migration

    Declaration
    void Up(IMigration migration)
    Parameters
    Type Name Description
    IMigration migration

    The migration to execute

    | Improve this Doc View Source

    ValidateVersionOrder()

    Validate that there were no missing migration versions

    Declaration
    void ValidateVersionOrder()
    Remarks

    Throws an exception if a missing migration was found.

    • Improve this Doc
    • 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.