//Khoi tao gio hàng theo MaLT duoc truyen vao voi Soluong mac dinh la 1 public Giohang(int MaLT) { iMaNH = MaLT; SANPHAM nh = data.SANPHAMs.Single(n => n.MaNH == iMaNH); sTenNH = nh.TenNH; sAnhbia = nh.Anhbia; dGiaBan = double.Parse(nh.Giaban.ToString()); iSoluong = 1; }
private void detach_SANPHAMs(SANPHAM entity) { this.SendPropertyChanging(); entity.HANGSX = null; }
private void attach_SANPHAMs(SANPHAM entity) { this.SendPropertyChanging(); entity.HANGSX = this; }
partial void DeleteSANPHAM(SANPHAM instance);
partial void UpdateSANPHAM(SANPHAM instance);
partial void InsertSANPHAM(SANPHAM instance);