根据key name的名称读取value-----读取使用ConfigurationManager.AppSettings读取容易没读取到根目录中的key public string GetXml(string name) { XmlDocument doc = new XmlDocument(); doc.Load("app.config"); XmlElement element = doc.SelectSingleNode("//add[@key='" + n
增加节点时,我们是这样写的: xop.Document.Element("messages").Add( new XElement("message", new XAttribute("event", model.EventType), new XElement("subject", model.Subject), new XElement("body", new XCData(model.Body))))
link:http://www.netingcn.com/mysql-modifyunique-key.html mysql可以使用unique key来确保数据的准确性,unique key可以是一个字段,也可以是多个字段,对应已经存在的unique key如何修改呢?目前我使用的方法是分两步来完成,先drop掉,然后在创建.需要注意的是drop时关键字是“index”,而创建时关键词是“unique key”,命令如下: alter table table_name drop index `
前言 最近正好刚刚看完,<stl源码剖析>这本书的map和set的源码部分.但是看完之后又突然发现,之前怎么没有注意到map和set容器中key不能修改是怎么实现的.故,特此整理如下. set容器中的实现 set中具体怎么实现的,看源码是最清楚的,下面就是set的部分源码: class set { ...... private: typedef rb_tree<key_type, value_type, identity<value_type>, key_compare, A