Search Results for

    Show / Hide Table of Contents

    Interface IVersionInfo

    Interface to query/update migration information

    Namespace: FluentMigrator.Runner.Versioning
    Assembly: FluentMigrator.Runner.dll
    Syntax
    public interface IVersionInfo

    Methods

    | Edit this page View Source

    AddAppliedMigration(long)

    Adds a migration version number as applied

    Declaration
    void AddAppliedMigration(long migration)
    Parameters
    Type Name Description
    long migration

    The version number

    | Edit this page View Source

    AppliedMigrations()

    Gets the version numbers of all applied migrations

    Declaration
    IEnumerable<long> AppliedMigrations()
    Returns
    Type Description
    IEnumerable<long>

    the version numbers of all applied migrations

    | Edit this page View Source

    HasAppliedMigration(long)

    Returns a value indicating whether a migration with the given version number has been applied

    Declaration
    bool HasAppliedMigration(long migration)
    Parameters
    Type Name Description
    long migration

    The migration version number to validate

    Returns
    Type Description
    bool

    true when the migration with the given version number has been applied

    | Edit this page View Source

    Latest()

    Gets the version number of the latest migration that has been applied

    Declaration
    long Latest()
    Returns
    Type Description
    long

    The version number

    • 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.