protected void Ekle()
 {
     using (sfKalDataEntities ent = new sfKalDataEntities())
     {
         refbakim orefbakim = new refbakim();
         orefbakim.BAKKARTNO = txtBAKKARTNO.Text.Trim();
         orefbakim.BAKTAR = raddtBAKTAR.SelectedDate;
         orefbakim.BAKACIKLAMA = txtBAKACIKLAMA.Text.Trim();
         orefbakim.BAKTIPI = txtBAKTIPI.Text.Trim();
         orefbakim.BAKANPER = txtBAKANPER.Text.Trim();
         orefbakim.UYARI = txtUYARI.Text.Trim();
         ent.AddTorefbakim(orefbakim);
         ent.SaveChanges();
         grdReferansBakimlariBagla();
         btnEkle.Visible = false;
         btnGuncelle.Visible = true;
     }
 }
 /// <summary>
 /// Create a new refbakim object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 public static refbakim Createrefbakim(global::System.Int32 id)
 {
     refbakim refbakim = new refbakim();
     refbakim.ID = id;
     return refbakim;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the refbakim EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTorefbakim(refbakim refbakim)
 {
     base.AddObject("refbakim", refbakim);
 }