// veri kaydetme private void button2_Click(object sender, EventArgs e) { testEntities entityNesne = new testEntities(); Tablo1 tablo1Nesne = new Tablo1(); tablo1Nesne.id = 5; tablo1Nesne.ad = "cehars"; tablo1Nesne.yas = 50; entityNesne.AddToTablo1(tablo1Nesne); entityNesne.SaveChanges(); }
/// <summary> /// Deprecated Method for adding a new object to the Tablo1 EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToTablo1(Tablo1 tablo1) { base.AddObject("Tablo1", tablo1); }
/// <summary> /// Create a new Tablo1 object. /// </summary> /// <param name="id">Initial value of the id property.</param> public static Tablo1 CreateTablo1(global::System.Int32 id) { Tablo1 tablo1 = new Tablo1(); tablo1.id = id; return tablo1; }