示例#1
0
        public CartItem(int ms)
        {
            tbl_SanPham a = data.tbl_SanPhams.SingleOrDefault(t => t.MaSanPham == ms);

            if (a != null)
            {
                iMaSach  = ms;
                sTenSach = a.TenSP;
                sAnhBia  = a.HinhAnh;
                dDonGia  = (double)a.DonGia;
                iSoluong = 1;
            }
        }
 partial void Deletetbl_SanPham(tbl_SanPham instance);
 partial void Updatetbl_SanPham(tbl_SanPham instance);
 partial void Inserttbl_SanPham(tbl_SanPham instance);