override protected void LoadXML(XmlNode cXmlNode) { if (null == cXmlNode || _bInitialized) { return; } XmlNode cNodeChild = cXmlNode.NodeGet("database", false); if (null == cNodeChild) { cNodeChild = cXmlNode.NodeGet("common/database", false); } if (null == cNodeChild) { return; } if (null != cNodeChild.Attributes["server"]) { _cDBCredentials = new DB.Credentials(cNodeChild); } if (null != cNodeChild.Attributes["bytea"]) { _eByteaOutput = cNodeChild.AttributeGet <ByteaOutput>("bytea"); } }
override protected void LoadXML(XmlNode cXmlNode) { if (null == cXmlNode || _bInitialized) return; XmlNode cNodeChild = cXmlNode.NodeGet("database", false); if(null == cNodeChild) cNodeChild = cXmlNode.NodeGet("common/database", false); if (null == cNodeChild) return; if (null != cNodeChild.Attributes["server"]) { _cDBCredentials = new DB.Credentials(); _cDBCredentials.sServer = cNodeChild.AttributeValueGet("server"); _cDBCredentials.nPort = cNodeChild.AttributeGet<int>("port"); _cDBCredentials.sDatabase = cNodeChild.AttributeValueGet("name"); _cDBCredentials.sUser = cNodeChild.AttributeValueGet("user"); _cDBCredentials.sPassword = cNodeChild.AttributeValueGet("password"); _cDBCredentials.nTimeout = cNodeChild.AttributeGet<int>("timeout"); } if (null != cNodeChild.Attributes["bytea"]) _eByteaOutput = cNodeChild.AttributeGet<ByteaOutput>("bytea"); }