Пример #1
0
 //给SQL数据库导入数据(要用到数据访问层中学生类的两个方法;方法1:CheckStuId获取数据库的学生的ID值;方法2:给数据添加值)
 public int InsertStudent(StudentExt stu)
 {
     //if (server.CheckStuId(stu.StudentIdNo) > 0)
     //{
     //    return -1;
     //}
     return(server.InsertStudent(stu));
 }
Пример #2
0
 public int InsertStudent(StudentExt stu)
 {
     if (server.CheckStuId(stu.SidNo) > 0)
     {
         return(-1);
     }
     return(server.InsertStudent(stu));
 }