using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SysBaseLibs { public sealed class DBConfig { rsXmlNode _XmlNode = null; public DBConfig(string pcString) : this(rsXmlNode.ParseGenericXml((pcString == "" ? "" : pcString))) { } public DBConfig(rsXmlNode poXmlNode) { _XmlNode = poXmlNode; if (_XmlNode == null) _XmlNode = new rsXmlNode("DBConifg", ""); } public string ConnectionStr { get { return _XmlNode.GetChildValue("ConnectionStr"); } set { _XmlNode.SetChildValue("ConnectionStr", value); } } public string DBVersion { get { return _XmlNode.GetChildValue("DBVersion"); } set { _XmlNode.SetChildValue("DBVersion", value); } } public string DBType { get { return _XmlNode.GetChildValue("DBType"); } set { _XmlNode.SetChildValue("DBType", value); } } public string DBAssembly { get { return _XmlNode.GetChildValue("DBAssembly"); } set { _XmlNode.SetChildValue("DBAssembly", value); } } public override string ToString() { return _XmlNode.ToAllXmlString(); } } }