Class ConnectionStringAccessor
Default implementation of IConnectionStringAccessor
Implements
Inherited Members
Namespace: FluentMigrator.Runner.Initialization
Assembly: FluentMigrator.Runner.Core.dll
Syntax
public class ConnectionStringAccessor : IConnectionStringAccessor
Constructors
| Edit this page View SourceConnectionStringAccessor(IOptionsSnapshot<ProcessorOptions>, IOptionsSnapshot<SelectingProcessorAccessorOptions>, IEnumerable<IConnectionStringReader>)
Initializes a new instance of the ConnectionStringAccessor class.
Declaration
public ConnectionStringAccessor(IOptionsSnapshot<ProcessorOptions> processorOptions, IOptionsSnapshot<SelectingProcessorAccessorOptions> processorSelectorOptions, IEnumerable<IConnectionStringReader> readers)
Parameters
Type | Name | Description |
---|---|---|
IOptionsSnapshot<ProcessorOptions> | processorOptions | The processor options containing the connection string or name |
IOptionsSnapshot<SelectingProcessorAccessorOptions> | processorSelectorOptions | The selected processor (its ID is used as connection string name) |
IEnumerable<IConnectionStringReader> | readers | The registered connection string readers |
Properties
| Edit this page View SourceConnectionString
Gets the connection string
Declaration
public string ConnectionString { get; }
Property Value
Type | Description |
---|---|
string |