Class ConnectionStringInfo

Used to parse a connection string or connection string name into a the base connection string and dbProvider.

If a connection string is passed that's just used. If a ConnectionString entry name is passed the connection string is extracted and the provider parsed.

System.Object
  Westwind.Utilities.Data.ConnectionStringInfo
public class ConnectionStringInfo : object

Class Members

MemberDescription

Constructor

DefaultProviderName

The default connection string provider

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)

RetrieveConnectionStringFromConfig

Retrieves a connection string from the Connection Strings configuration settings

public static string RetrieveConnectionStringFromConfig(string connectionStringName,     ConnectionStringInfo info)

ConnectionString

The connection string parsed

Provider

The DbProviderFactory parsed from the connection string or default provider

Requirements

Namespace: Westwind.Utilities.Data
Assembly: westwind.utilities.dll

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