Ejemplo n.º 1
0
 private static void LoadConfigSection()
 {
     try
     {
         dataSourceSection = (DataSourceSection)ConfigurationManager.GetSection(dataSourceSectionName);
     }
     catch (Exception ex)
     {
         throw new ConfigurationErrorsException("加载配置文件出错", ex);
     }
 }
Ejemplo n.º 2
0
 private static void LoadConfigSection()
 {
     try
     {
         dataSourceSection = (DataSourceSection)ConfigurationManager.GetSection(dataSourceSectionName);
     }
     catch (Exception ex)
     {
         throw new ConfigurationErrorsException("加载配置文件出错", ex);
     }
 }