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 SourceApplicationContext
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 |