12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- 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 == "" ? "<DBConifg></DBConifg>" : 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();
- }
- }
- }
|