コード例 #1
0
 public void Insert(DAL.KetQuaThiTuyen kqtt)
 {
     if (kqtt != null)
     {
         dataContext.KetQuaThiTuyens.InsertOnSubmit(kqtt);
         Save();
     }
 }
コード例 #2
0
 public void Delete(int id)
 {
     DAL.KetQuaThiTuyen temp = dataContext.KetQuaThiTuyens.SingleOrDefault(t => t.ID == id);
     if (temp != null)
     {
         dataContext.KetQuaThiTuyens.DeleteOnSubmit(temp);
         Save();
     }
 }
コード例 #3
0
 public void Update(DAL.KetQuaThiTuyen kqtt)
 {
     DAL.KetQuaThiTuyen temp = dataContext.KetQuaThiTuyens.SingleOrDefault(t => t.ID == kqtt.ID);
     if (temp != null)
     {
         temp.CreatedBy    = kqtt.CreatedBy;
         temp.CreatedDate  = kqtt.CreatedDate;
         temp.Diem         = kqtt.Diem;
         temp.NguoiChamThi = kqtt.NguoiChamThi;
         temp.ID           = kqtt.ID;
         temp.MaMonThi     = kqtt.MaMonThi;
         temp.FR_KEY       = kqtt.FR_KEY;
         //temp.MaVongPhongVan = kqtt.MaVongPhongVan;
         temp.NgayThiTuyen = kqtt.NgayThiTuyen;
         temp.NhanXet      = kqtt.NhanXet;
         temp.VongThi      = kqtt.VongThi;
         Save();
     }
 }