[]
Initializes a new instance of the DbDataSource class based on the specified provider name.
public DbDataSource(string providerName)
Type | Name | Description |
---|---|---|
string | providerName | The provider's invariant name used to match one of the registered data providers in the configuration. The search is case-insensitive (InvariantCultureIgnoreCase). |
Creates new DbDataSource out of DataProviderInfo
public DbDataSource(DataProviderInfo dataProvider)
Type | Name | Description |
---|---|---|
DataProviderInfo | dataProvider | Data provider information |
Creates new DbDataSource out of DbProviderFactory
[Obsolete("Please don't use this constructor.")]
public DbDataSource(DbProviderFactory factory)
Type | Name | Description |
---|---|---|
DbProviderFactory | factory | DbProviderFactory to be used |