Exemplo n.º 1
0
        public Giohang(int Masanpham)
        {
            iMaSanPham = Masanpham;
            SANPHAM sanpham = data.SANPHAMs.Single(n => n.MaSanPham == iMaSanPham);

            sTenSanPham = sanpham.TenSanPham;
            sAnh        = sanpham.Anh;
            dDongia     = double.Parse(sanpham.Giaban.ToString());
            iSoluong    = 1;
        }
 private void detach_SANPHAMs(SANPHAM entity)
 {
     this.SendPropertyChanging();
     entity.CHUNGLOAI = null;
 }
 partial void UpdateSANPHAM(SANPHAM instance);
 partial void DeleteSANPHAM(SANPHAM instance);
 partial void InsertSANPHAM(SANPHAM instance);