Example #1
0
        public GioHang(string MaH)
        {
            sMahoa = MaH;
            Hoa h = data.Hoas.Single(n => n.MaHoa == sMahoa);

            sTenhoa  = h.TenHoa;
            sHinhAnh = h.HinhAnh;
            iDonGia  = float.Parse(h.Giaban.ToString());
            iSoluong = 1;
        }
Example #2
0
 partial void DeleteHoa(Hoa instance);
Example #3
0
 partial void UpdateHoa(Hoa instance);
Example #4
0
 partial void InsertHoa(Hoa instance);
Example #5
0
 private void detach_Hoas(Hoa entity)
 {
     this.SendPropertyChanging();
     entity.LoaiHoa = null;
 }
Example #6
0
 private void attach_Hoas(Hoa entity)
 {
     this.SendPropertyChanging();
     entity.LoaiHoa = this;
 }