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; }
partial void DeleteHoa(Hoa instance);
partial void UpdateHoa(Hoa instance);
partial void InsertHoa(Hoa instance);
private void detach_Hoas(Hoa entity) { this.SendPropertyChanging(); entity.LoaiHoa = null; }
private void attach_Hoas(Hoa entity) { this.SendPropertyChanging(); entity.LoaiHoa = this; }