protected void Button5_Click(object sender, EventArgs e) { Student s = new Student { Age = 26, Id = 3, Name = "jjjjjj" }; int ts = dao.Update(s); Response.Write(" 刚更新了:" + ts); }
protected void Button2_Click(object sender, EventArgs e) { Student s = new Student { Name = "nijunhua2", Birth = new DateTime(1998, 2, 1), Age = 15 }; int rs = dao.InsertS(s); Response.Write(" 刚插入的学生的id是:" + rs); }