public Giohang(int MaMH) { iMaMH = MaMH; MATHANG ngk = data.MATHANGs.Single(n => n.MaMH == iMaMH); sTenMH = ngk.TenMH; sHinhSP = ngk.HinhSP; kKhuyenmai = (Double)ngk.KhuyenMai; dDonGia = double.Parse(ngk.GiaBan.ToString()); iSoluong = 1; }
partial void DeleteMATHANG(MATHANG instance);
partial void UpdateMATHANG(MATHANG instance);
partial void InsertMATHANG(MATHANG instance);
private void detach_MATHANGs(MATHANG entity) { this.SendPropertyChanging(); entity.LOAINGK = null; }
private void attach_MATHANGs(MATHANG entity) { this.SendPropertyChanging(); entity.LOAINGK = this; }