Ejemplo n.º 1
0
 /// <summary>
 /// 환경설정에 정의된 모든 Database Connection 에 해당하는 ConnectionPool을 제거합니다.
 /// </summary>
 public static void ClearAllConnectionPoolsFromConfiguration()
 {
     foreach (var connSettings in ConfigTool.GetConnectionStringSettings())
     {
         ClearConnectionPoolInternal(connSettings.ProviderName);
     }
 }
Ejemplo n.º 2
0
        protected AdoProviderBase(string connectionStringName)
        {
            if (connectionStringName.IsWhiteSpace())
            {
                connectionStringName = ConfigTool.GetConnectionStringSettings()[0].Name;
            }

            var connSettings = ConfigTool.GetConnectionSettings(connectionStringName);

            Guard.Assert(connSettings != null, "해당 ConnectionString 정보를 찾지 못했습니다. connectionStringName=[{0}]", connectionStringName);

            ConnectionString = connSettings.ConnectionString;
            ProviderName     = connSettings.ProviderName;

            InitializeDatabase();
        }
Ejemplo n.º 3
0
 /// <summary>
 /// 환경설정에 설정된 ConnectionStrings 섹션의 <see cref="ConnectionStringSettings"/> 을 모두 가져온다.
 /// </summary>
 /// <returns></returns>
 public static IEnumerable <ConnectionStringSettings> GetConnectionStringSettings()
 {
     return(ConfigTool.GetConnectionStringSettings());
 }