Interface IRunnerContext
Namespace: FluentMigrator.Runner.Initialization
Assembly: FluentMigrator.Runner.Core.dll
Syntax
[Obsolete]
public interface IRunnerContext
Properties
| Edit this page View SourceAllowBreakingChange
Gets or sets a value indicating whether the migration runner is allowed to apply breaking changes
Declaration
bool AllowBreakingChange { get; set; }
Property Value
Type | Description |
---|---|
bool |
Remarks
The option is now stored in AllowBreakingChange.
Announcer
Gets or sets the announcer to use
Declaration
IAnnouncer Announcer { get; }
Property Value
Type | Description |
---|---|
IAnnouncer |
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 (or name)
Declaration
string Connection { get; set; }
Property Value
Type | Description |
---|---|
string |
Remarks
Will not be used when PreviewOnly is active. The option is now directly stored in ConnectionString
ConnectionStringConfigPath
Gets or sets the path to an app.config/web.config to load the connection string from
Declaration
string ConnectionStringConfigPath { get; set; }
Property Value
Type | Description |
---|---|
string |
Database
Gets or sets the identifier of the processor to use
Declaration
[Obsolete("A preselection must happen during the migration runner configuration")]
string Database { get; set; }
Property Value
Type | Description |
---|---|
string |
DefaultSchemaName
Gets or sets the default schema name
Declaration
string DefaultSchemaName { get; set; }
Property Value
Type | Description |
---|---|
string |
Remarks
The default schema name must be set using the SchemaConvention
Namespace
Gets or sets the root namespace for filtering
Declaration
string Namespace { get; set; }
Property Value
Type | Description |
---|---|
string |
Remarks
The option is now directly stored in Namespace.
NestedNamespaces
Gets or sets the value indicating whether all sub-namespaces should be included
Declaration
bool NestedNamespaces { get; set; }
Property Value
Type | Description |
---|---|
bool |
Remarks
The option is now directly stored in NestedNamespaces.
NoConnection
Gets or sets a value indicating whether no connection should be used
Declaration
bool NoConnection { get; set; }
Property Value
Type | Description |
---|---|
bool |
Remarks
The difference between this and PreviewOnly is, that the preview-only mode uses the connection to determine the current state of the database.
PreviewOnly
Gets or sets a value indicating whether a preview-only mode is active
Declaration
bool PreviewOnly { get; set; }
Property Value
Type | Description |
---|---|
bool |
Remarks
The option is now directly stored in PreviewOnly
Profile
Gets or sets the profile migrations to apply
Declaration
string Profile { get; set; }
Property Value
Type | Description |
---|---|
string |
Remarks
The option is now stored in Profile.
ProviderSwitches
Gets or sets the provider switches
Declaration
string ProviderSwitches { get; set; }
Property Value
Type | Description |
---|---|
string |
Remarks
The option is now stored in PreviewOnly.
StartVersion
Gets or sets the start version
Declaration
long StartVersion { get; set; }
Property Value
Type | Description |
---|---|
long |
Remarks
The option is now stored in StartVersion.
Steps
Gets or sets the number of versions to apply
Declaration
int Steps { get; set; }
Property Value
Type | Description |
---|---|
int |
Remarks
The option is now stored in Steps.
StopWatch
Gets or sets the stopwatch to use
Declaration
IStopWatch StopWatch { get; }
Property Value
Type | Description |
---|---|
IStopWatch |
StripComments
Gets or sets a value indicating whether the comments should be stripped
Declaration
bool StripComments { get; set; }
Property Value
Type | Description |
---|---|
bool |
Tags
Gets or sets the tags the migrations must match
Declaration
IEnumerable<string> Tags { get; set; }
Property Value
Type | Description |
---|---|
IEnumerable<string> |
Remarks
All migrations are matched when no tags were specified. The option is now stored in Tags.
Targets
Gets or sets the assembly names
Declaration
string[] Targets { get; set; }
Property Value
Type | Description |
---|---|
string[] |
Remarks
The option is now stored in AssemblyNames
Task
Gets or sets the task to execute
Declaration
string Task { get; set; }
Property Value
Type | Description |
---|---|
string |
Remarks
The option is now stored in Task.
Timeout
Gets or sets the default command timeout in seconds
Declaration
int? Timeout { get; set; }
Property Value
Type | Description |
---|---|
int? |
TransactionPerSession
Use one transaction for the whole session
Declaration
bool TransactionPerSession { get; set; }
Property Value
Type | Description |
---|---|
bool |
Remarks
The default transaction behavior is to use one transaction per migration. The option is now stored in TransactionPerSession.
Version
Gets or sets the target version
Declaration
long Version { get; set; }
Property Value
Type | Description |
---|---|
long |
Remarks
The option is now stored in Version.
WorkingDirectory
Gets or sets the working directory
Declaration
string WorkingDirectory { get; set; }
Property Value
Type | Description |
---|---|
string |