public ItemGioHang(int ma_lh) { using (GiaSuEntities db = new GiaSuEntities()) { this.Ma_Lop_Hoc = ma_lh; LOPHOC lh = db.LOPHOC.Single(n => n.MA_LH == ma_lh); this.Ten_Lop_Hoc = lh.TEN_LH; this.Si_So = lh.SISO; this.Buoi = lh.BUOI; this.Ngay = lh.NGAY; this.Ten_Khoa_Hoc = lh.KHOAHOC.TEN_KH; this.Thoi_Gian_Hoc = lh.KHOAHOC.THOIGIANHOC; this.Noi_Dung = lh.KHOAHOC.NOIDUNG; this.Hoc_Phi = lh.KHOAHOC.HOCPHI; this.SL = 1; this.Tong_Tien = Hoc_Phi; } }