コード例 #1
0
 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);
 }