title: Getting updating entries error while trying to add items to database
body: <p>I'm trying to add items to my database by using my &quot;Add&quot; button but whenever I try to add compiler says &quot;An error occured while updating the entries. See the inner exception details.&quot;</p>
  <p>This is my add button code :</p>
  <pre><code>private void button_Ekle_Click(object sender, EventArgs e)
          {
  
              try
              {
                  tblKullanici kln = new tblKullanici();
                  kln.KullaniciAdi = textBox_Adi.Text;
                  kln.KullaniciSoyadi = textBox_Soyadi.Text;
                  kln.Email = textBox_Email.Text;
                  kln.Tarih = date_DogumTarihi.Value;
                  kln.Durum = true;
                  kln.Telefon = textBox_Telefon.Text;
                  db.tblKullanici.Add(kln);
                  db.SaveChanges();
                  UyeleriListele();
              }
              catch (Exception hata)
              {
  
                  label_Message.Text = &quot;UyeEkle-Ekle-&quot; + hata.InnerException.Message.ToString();
              }
  </code></pre>