Example #1
0
        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;
        }
Example #2
0
 partial void DeleteMATHANG(MATHANG instance);
Example #3
0
 partial void UpdateMATHANG(MATHANG instance);
Example #4
0
 partial void InsertMATHANG(MATHANG instance);
Example #5
0
 private void detach_MATHANGs(MATHANG entity)
 {
     this.SendPropertyChanging();
     entity.LOAINGK = null;
 }
Example #6
0
 private void attach_MATHANGs(MATHANG entity)
 {
     this.SendPropertyChanging();
     entity.LOAINGK = this;
 }