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

    | Edit this page View Source

    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
    | Edit this page View Source

    Connection

    Gets or sets the connection string

    Declaration
    string Connection { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Expressions

    Gets or sets the collection of expressions

    Declaration
    ICollection<IMigrationExpression> Expressions { get; set; }
    Property Value
    Type Description
    ICollection<IMigrationExpression>
    | Edit this page View Source

    MigrationAssemblies

    Gets or sets the collection of migration assemblies

    Declaration
    [Obsolete]
    [CanBeNull]
    IAssemblyCollection MigrationAssemblies { get; set; }
    Property Value
    Type Description
    IAssemblyCollection
    | Edit this page View Source

    QuerySchema

    Gets the IQuerySchema to access the database

    Declaration
    IQuerySchema QuerySchema { get; }
    Property Value
    Type Description
    IQuerySchema
    | Edit this page View Source

    ServiceProvider

    Gets the service provider used to create this migration context

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