Search Results for

    Show / Hide Table of Contents

    Class MigrationBase

    Inheritance
    object
    MigrationBase
    AutoReversingMigration
    AutoScriptMigration
    Migration
    Implements
    IMigration
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: FluentMigrator
    Assembly: FluentMigrator.dll
    Syntax
    public abstract class MigrationBase : IMigration

    Properties

    Alter

    Declaration
    public IAlterExpressionRoot Alter { get; }
    Property Value
    Type Description
    IAlterExpressionRoot

    ApplicationContext

    The arbitrary application context passed to the task runner.

    Declaration
    public object ApplicationContext { get; protected set; }
    Property Value
    Type Description
    object

    ConnectionString

    Connection String that is used to execute migrations.

    Declaration
    public string ConnectionString { get; protected set; }
    Property Value
    Type Description
    string

    Create

    Declaration
    public ICreateExpressionRoot Create { get; }
    Property Value
    Type Description
    ICreateExpressionRoot

    Insert

    Declaration
    public IInsertExpressionRoot Insert { get; }
    Property Value
    Type Description
    IInsertExpressionRoot

    Rename

    Declaration
    public IRenameExpressionRoot Rename { get; }
    Property Value
    Type Description
    IRenameExpressionRoot

    Schema

    Declaration
    public ISchemaExpressionRoot Schema { get; }
    Property Value
    Type Description
    ISchemaExpressionRoot

    Methods

    Down()

    Declaration
    public abstract void Down()

    GetDownExpressions(IMigrationContext)

    Declaration
    public virtual void GetDownExpressions(IMigrationContext context)
    Parameters
    Type Name Description
    IMigrationContext context

    GetUpExpressions(IMigrationContext)

    Declaration
    public virtual void GetUpExpressions(IMigrationContext context)
    Parameters
    Type Name Description
    IMigrationContext context

    IfDatabase(Predicate<string>)

    Declaration
    public IIfDatabaseExpressionRoot IfDatabase(Predicate<string> databaseTypeFunc)
    Parameters
    Type Name Description
    Predicate<string> databaseTypeFunc
    Returns
    Type Description
    IIfDatabaseExpressionRoot

    IfDatabase(params string[])

    Declaration
    public IIfDatabaseExpressionRoot IfDatabase(params string[] databaseType)
    Parameters
    Type Name Description
    string[] databaseType
    Returns
    Type Description
    IIfDatabaseExpressionRoot

    Up()

    Declaration
    public abstract void Up()

    Implements

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