Example #1
0
 /// <summary>
 /// 初始化配置信息
 /// </summary>
 internal DataConfig(DataConfig parent)
 {
     if(parent != null)
     {
         _type = parent.Type;
         _connectionStringName = parent.ConnectionStringName;
         _timeout = parent.Timeout;
     }
 }
Example #2
0
 object IConfigurationSectionHandler.Create(object parent, object configContext, XmlNode section)
 {
     DataConfig config = new DataConfig((DataConfig)parent);
     config.LoadValuesFromConfigurationXml(section);
     return config;
 }