protected void btn_Save_Click(object sender, DirectEventArgs e)
        {
            int dekanKod = Convert.ToInt32(txt_dekanKod.Text);
            int dekanYardKod = 123;
            int dekanYard2Kod = 123;
            SyllabusDbEntities db;
            using (db = new SyllabusDbEntities())
            {
                Fakulte fakulte = new Fakulte();
                fakulte.fakulte_Kodu = txt_kod.Text;
                fakulte.fakulte_Adi = txt_fakulteAdi.Text;
                fakulte.fakulte_Kisa_Adi = txt_kisaAdi.Text;
                fakulte.fakulte_Dekani_ID = dekanKod;
                fakulte.fakulte_Dekan_Yard_ID = dekanYardKod;
                fakulte.fakulte_Dekan_Yard2_ID = dekanYard2Kod;

                db.AddToFakultes(fakulte);
                db.SaveChanges();
            }
            AddStore();
            ClearText();
        }
 /// <summary>
 /// Deprecated Method for adding a new object to the Fakultes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToFakultes(Fakulte fakulte)
 {
     base.AddObject("Fakultes", fakulte);
 }
 /// <summary>
 /// Create a new Fakulte object.
 /// </summary>
 /// <param name="fakulte_ID">Initial value of the fakulte_ID property.</param>
 /// <param name="fakulte_Kodu">Initial value of the fakulte_Kodu property.</param>
 /// <param name="fakulte_Adi">Initial value of the fakulte_Adi property.</param>
 /// <param name="fakulte_Dekani_ID">Initial value of the fakulte_Dekani_ID property.</param>
 public static Fakulte CreateFakulte(global::System.Int32 fakulte_ID, global::System.String fakulte_Kodu, global::System.String fakulte_Adi, global::System.Int32 fakulte_Dekani_ID)
 {
     Fakulte fakulte = new Fakulte();
     fakulte.fakulte_ID = fakulte_ID;
     fakulte.fakulte_Kodu = fakulte_Kodu;
     fakulte.fakulte_Adi = fakulte_Adi;
     fakulte.fakulte_Dekani_ID = fakulte_Dekani_ID;
     return fakulte;
 }