ConnectionStringInfo.GetConnectionStringInfo

Figures out the Provider and ConnectionString from either a connection string name in a config file or full ConnectionString and provider.

public static ConnectionStringInfo GetConnectionStringInfo(string connectionString,
	string providerName,
	DbProviderFactory factory)

Parameters

connectionString
Config file connection name or full connection string

providerName
optional provider name. If not passed with a connection string is considered Sql Server

factory
optional provider factory. Use for .NET Core to pass actual provider instance since DbproviderFactories doesn't exist


See also:

Class ConnectionStringInfo

© West Wind Technologies, 2019 • Updated: 06/23/19
Comment or report problem with topic