Search Results for

    Show / Hide Table of Contents

    Interface IMigrationContext

    The context of a migration while collecting up/down expressions

    Namespace: FluentMigrator.Infrastructure
    Assembly: FluentMigrator.Abstractions.dll
    Syntax
    public interface IMigrationContext

    Properties

    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

    Connection

    Gets or sets the connection string

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

    Expressions

    Gets or sets the collection of expressions

    Declaration
    ICollection<IMigrationExpression> Expressions { get; set; }
    Property Value
    Type Description
    ICollection<IMigrationExpression>

    MigrationAssemblies

    Gets or sets the collection of migration assemblies

    Declaration
    [Obsolete]
    [CanBeNull]
    IAssemblyCollection MigrationAssemblies { get; set; }
    Property Value
    Type Description
    IAssemblyCollection

    QuerySchema

    Gets the IQuerySchema to access the database

    Declaration
    IQuerySchema QuerySchema { get; }
    Property Value
    Type Description
    IQuerySchema

    ServiceProvider

    Gets the service provider used to create this migration context

    Declaration
    [NotNull]
    IServiceProvider ServiceProvider { get; }
    Property Value
    Type Description
    IServiceProvider
    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.