示例#1
0
文件: Form1.cs 项目: cehars/pro-lang
        // 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();
        }
示例#2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Tablo1 EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToTablo1(Tablo1 tablo1)
 {
     base.AddObject("Tablo1", tablo1);
 }
示例#3
0
 /// <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;
 }