예제 #1
0
        public GioHang(string Ma)
        {
            Masp = Ma;
            tbl_SanPham sp = mk.tbl_SanPhams.Single(n => n.MaSanPham == Ma);

            Tensp  = sp.TenSP;
            Hinh   = sp.Hinh;
            DonGia = double.Parse(sp.Gia.ToString());
            SL     = 1;
        }
 private void detach_tbl_SanPhams(tbl_SanPham entity)
 {
     this.SendPropertyChanging();
     entity.tbl_Loai = null;
 }
 partial void Deletetbl_SanPham(tbl_SanPham instance);
 partial void Updatetbl_SanPham(tbl_SanPham instance);
 partial void Inserttbl_SanPham(tbl_SanPham instance);
 private void attach_tbl_SanPhams(tbl_SanPham entity)
 {
     this.SendPropertyChanging();
     entity.tbl_NhaSanXuat = this;
 }