当前位置:编程学习 > C#/ASP.NET >>

求一个winform+Ibatis.net的源码

求一个winform+Ibatis.net的源码,或者有winform+Ibatis.net的配置文件。急求啊。。。谢谢啦 --------------------编程问答-------------------- http://download.csdn.net/detail/zhangyunbo1116/2565968

http://www.zhuli8.com/ibatis/abtisnetapply.html

http://mwga.net.blog.163.com/blog/static/106456728201143035346657/ --------------------编程问答-------------------- 请问有winform+Ibatis.net+sql的源码的吗     完整一点的。   我的邮箱446438995@qq.com --------------------编程问答-------------------- 你可以看看这个

//配置文件的源文件(App.Config)<?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="ServerName" value=""/> </appSettings> </configuration> //更新app.config的函数private void UpdateConfig(string Xvalue){ XmlDocument doc = new XmlDocument(); doc.Load(Application.ExecutablePath+".config"); XmlNode node = doc.SelectSingleNode(@"//add[@key='ServerName']"); XmlElement ele = (XmlElement)node; ele.SetAttribute("value",Xvalue); doc.Save(Application.ExecutablePath+".config"); }web.config: /// <summary> /// 向.config文件的appKey结写入信息AppValue 保存设置 /// </summary> /// <param name="AppKey">节点名</param> /// <param name="AppValue">值</param>Private void SetValue(String AppKey,String AppValue){Xmldocument xDoc=new XmlDocument();xDoc.Load(System.Windows.Forms.Application.ExecutablePath+”.config”);XmlNode xNode;XmlElement xElem1;XmlElement xElem2;xNode=xDoc.SelectSingleNode(“//appSettings”);xElem1=(XmlElement)xNode.SelectSingleNode(“//add[@key=’”+AppKey+”’]”);if(xElem1!=null)xElem1.SetAttribute(“value”,AppValue);else{xElem2=xdoc.CreateElement(“add”);xElem2.SetAttribute(“key”,AppKey);xElem2.setAttribute(“value”,AppValue);xNode.AppendChild(xElem2);}xDoc.Save(System.Windows.Forms.Application.ExecutablePath+”.config”);}
网上找的,希望能帮到你。











补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,