Exemple #1
0
 void ReadSql(Type table)
 {
     string xml = AppSettingItem.AppDataSqlXml;//xml 文件
     //读取进行操作的SQL语句
     string nodeName = BaseCfgItem.AppCfgXmlNodeFormat + "/" + table.Name;
     //读取节点项
     string addSqlCmd = XmlFileHelper.ReadXmlItemValue(xml, nodeName, "key", "value", "Insert");
 }
Exemple #2
0
 public string GetXml(string xmlFile, string sqlNodeKeyName, string sqlNodeValueName, string nodeSqlKey)
 {//读取xml中节点数据
     return(XmlFileHelper.ReadXmlItemValue(xmlFile, sqlNodeKeyName, sqlNodeKeyName, sqlNodeValueName, nodeSqlKey));
 }