摘要:
我要修改 ID=3 的那一条记录,下面这段代码执行的时候没有错: private void Button2_Click(object sender, EventArgs e){ Configuration cfg = new Configuration(); cfg.AddXmlFile(Server.MapPath("NHEntity/userinfo.hbm.xml")); ... 阅读全文
摘要:
下面这段代码没有出错,数据也能添加进去: private void Button1_Click(object sender, EventArgs e){ UserInfo ui = new UserInfo(); ui.Name = "李彬"; ui.Sex = true; ui.Hit = 86; ui.Birthday = DateTime.Parse("1983... 阅读全文