예제 #1
0
 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);
 }
예제 #2
0
 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);
 }