private void buttonGuncelle_Click(object sender, EventArgs e) { db = new HastaneTakipYGEntities(); h = db.Hastas.Find(secilenID); h.TC = textBoxTC.Text; h.Ad = textBoxAd.Text; h.Soyad = textBoxSoyad.Text; h.DTarih = dateTimePickerDogumTrh.Value; h.DYeri = textBoxDogumYer.Text; h.Cinsiyet = comboBoxCinsiyet.Text; h.Adres = textBoxAdres.Text; h.Telefon = textBoxTelefon.Text; h.SosyalGuvenlik = comboBoxSosyelGuvenlik.Text; db.SaveChanges(); MessageBox.Show("Güncelleme Başarıyla Gerçekleşti. ☻"); Doldur(); }