示例#1
0
 public Student()
 {
     if (_dbHepler == null)
     {
         _dbHepler = new DBhepler();
     }
 }
示例#2
0
 public void SaveMore(params Student[] students)
 {
     using (DbConnection connection = new DBhepler().Connection)
     {
         for (int i = 0; i < students.Length; i++)
         {
             students[i].Save();
         }
     }
 }