protected void btnKaydet_Click(object sender, EventArgs e)
 {
     using (sfKalDataEntities ent = new sfKalDataEntities())
     {
         DisPersonel oDisPersonel = new DisPersonel();
         oDisPersonel.UId = Guid.NewGuid();
         oDisPersonel.AdSoyad = AdSoyadTextBox.Text.Trim();
         oDisPersonel.Faaliyet = FaaliyetDropDownList.SelectedValue;
         oDisPersonel.BolgeKodu = short.Parse(BolgeKoduDropDownList.SelectedValue);
         oDisPersonel.Silindi = SilindiCheckBox.Checked;
         ent.AddToDisPersonel(oDisPersonel);
         ent.SaveChanges();
         BindData();
         divEdit.Visible = false;
     }
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the DisPersonel EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToDisPersonel(DisPersonel disPersonel)
 {
     base.AddObject("DisPersonel", disPersonel);
 }
 /// <summary>
 /// Create a new DisPersonel object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="uId">Initial value of the UId property.</param>
 /// <param name="adSoyad">Initial value of the AdSoyad property.</param>
 /// <param name="faaliyet">Initial value of the Faaliyet property.</param>
 /// <param name="bolgeKodu">Initial value of the BolgeKodu property.</param>
 /// <param name="silindi">Initial value of the Silindi property.</param>
 public static DisPersonel CreateDisPersonel(global::System.Int32 id, global::System.Guid uId, global::System.String adSoyad, global::System.String faaliyet, global::System.Int16 bolgeKodu, global::System.Boolean silindi)
 {
     DisPersonel disPersonel = new DisPersonel();
     disPersonel.Id = id;
     disPersonel.UId = uId;
     disPersonel.AdSoyad = adSoyad;
     disPersonel.Faaliyet = faaliyet;
     disPersonel.BolgeKodu = bolgeKodu;
     disPersonel.Silindi = silindi;
     return disPersonel;
 }