Пример #1
0
 public void sua(string makho, string tenkho, bool kmd)
 {
     H            = qlsv.DMKhos.Where(t => t.MaKho == makho).FirstOrDefault();
     H.MaKho      = makho;
     H.TenKho_V   = tenkho;
     H.KhoMacDinh = kmd;
     qlsv.SubmitChanges();
 }
Пример #2
0
 public void Xoa(string makho)
 {
     H = qlsv.DMKhos.Where(t => t.MaKho == makho).FirstOrDefault();
     qlsv.DMKhos.DeleteOnSubmit(H);
     qlsv.SubmitChanges();
 }
 partial void UpdateDMKho(DMKho instance);
 partial void DeleteDMKho(DMKho instance);
 partial void InsertDMKho(DMKho instance);