Class ConfigurationConnectionStringReader
Implementation of IConnectionStringReader that interprets tries to get the connection string from an IConfiguration or IConfigurationRoot.
Implements
Inherited Members
Namespace: FluentMigrator.Runner.Initialization
Assembly: FluentMigrator.Runner.Core.dll
Syntax
public class ConfigurationConnectionStringReader : IConnectionStringReader
Constructors
| Edit this page View SourceConfigurationConnectionStringReader(IServiceProvider)
Initializes a new instance of the ConfigurationConnectionStringReader class.
Declaration
public ConfigurationConnectionStringReader(IServiceProvider serviceProvider)
Parameters
Type | Name | Description |
---|---|---|
IServiceProvider | serviceProvider | The service provider to get the configuration interface from |
Properties
| Edit this page View SourcePriority
Gets the priority
Declaration
public int Priority { get; }
Property Value
Type | Description |
---|---|
int |
Remarks
Higher value means that it gets processed first
Methods
| Edit this page View SourceGetConnectionString(string)
Gets the connection string
Declaration
public string GetConnectionString(string connectionStringOrName)
Parameters
Type | Name | Description |
---|---|---|
string | connectionStringOrName | The name of the connection string |
Returns
Type | Description |
---|---|
string |