public void XoaDuLieu(KhoSach et) { cn.ThucThiCauLenhSQL(@"DELETE from KHOSACH where MaSach='" + et.Masach + "'"); }
public void SetUp() { this.khoSach = new KhoSach("CN0001", "Yoga An Thần", "NXB Thanh Hóa", "CN", 3, "", 60000, 40, 50, "đang kinh doanh"); }
public void SuaDuLieu(KhoSach et) { cn.ThucThiCauLenhSQL(@"UPDATE KHOSACH SET SoLuongTrongKho='" + et.Soluongtrongkho + "' where MaSach='" + et.Masach + "'"); }
public void ThemDuLieu(KhoSach et) { cn.ThucThiCauLenhSQL(@"INSERT INTO KHOSACH (MaSach,SoLuongTrongKho) VALUES ('" + et.Masach + "',N'" + "',N'" + et.Soluongtrongkho + "')"); }
public void XoaDuLieu(KhoSach et) { sql.XoaDuLieu(et); }
public void SuaDuLieu(KhoSach et) { sql.SuaDuLieu(et); }
public void ThemDuLieu(KhoSach et) { sql.ThemDuLieu(et); }