static DataCommandHelper() { ConnectionStringManager.SetConnectionString(new Func <string, ConnectionStringManager.ConnStrSetting>(DataCommandHelper.GetConnStrSetting)); }
public ConnStrSetting(string name, string connStr, string providerName) : this(name, connStr, ConnectionStringManager.ConvertProviderNameToType(providerName, name, connStr)) { }
public static void SetConnectionString(string databaseName, string connStr, string providerName) { ProviderType providerType = ConnectionStringManager.ConvertProviderNameToType(providerName, databaseName, connStr); ConnectionStringManager.SetConnectionString(databaseName, connStr, providerType); }
public static void SetSqlServerConnectionString(string databaseName, string connStr) { ConnectionStringManager.SetConnectionString(databaseName, connStr, ProviderType.SqlServer); }