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(); }
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);