public Giohang(int Masp) { iMasp = Masp; SANPHAM sanpham = data.SANPHAMs.Single(n => n.Masp == iMasp); sTensp = sanpham.Tensp; sAnhbia = sanpham.Anhbia; dDongia = double.Parse(sanpham.Giaban.ToString()); iSoluong = 1; }
private void detach_SANPHAMs(SANPHAM entity) { this.SendPropertyChanging(); entity.LOAISANPHAM = null; }
private void attach_SANPHAMs(SANPHAM entity) { this.SendPropertyChanging(); entity.LOAISANPHAM = this; }
partial void DeleteSANPHAM(SANPHAM instance);
partial void UpdateSANPHAM(SANPHAM instance);
partial void InsertSANPHAM(SANPHAM instance);