static DataCommandHelper()
 {
     ConnectionStringManager.SetConnectionString(new Func <string, ConnectionStringManager.ConnStrSetting>(DataCommandHelper.GetConnStrSetting));
 }
Пример #2
0
 public ConnStrSetting(string name, string connStr, string providerName)
     : this(name, connStr, ConnectionStringManager.ConvertProviderNameToType(providerName, name, connStr))
 {
 }
Пример #3
0
        public static void SetConnectionString(string databaseName, string connStr, string providerName)
        {
            ProviderType providerType = ConnectionStringManager.ConvertProviderNameToType(providerName, databaseName, connStr);

            ConnectionStringManager.SetConnectionString(databaseName, connStr, providerType);
        }
Пример #4
0
 public static void SetSqlServerConnectionString(string databaseName, string connStr)
 {
     ConnectionStringManager.SetConnectionString(databaseName, connStr, ProviderType.SqlServer);
 }