Search Results for

    Show / Hide Table of Contents

    Class VersionInfo

    Inheritance
    object
    VersionInfo
    Implements
    IVersionInfo
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: FluentMigrator.Runner.Versioning
    Assembly: FluentMigrator.Runner.dll
    Syntax
    public class VersionInfo : IVersionInfo

    Methods

    | Edit this page View Source

    AddAppliedMigration(long)

    Adds a migration version number as applied

    Declaration
    public 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
    public 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
    public 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
    public long Latest()
    Returns
    Type Description
    long

    The version number

    Implements

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