コード例 #1
0
        public void InsertIbu(string nama, string pkj, DateTime tl, string alamat)
        {
            using (DbBhmEntities dc = new DbBhmEntities())
            {
                Ibu ibu = new Ibu();

                ibu.namaIbu = nama;
                ibu.pkjIbu = pkj;
                ibu.tlIbu = tl;
                ibu.alamatIbu = alamat;

                dc.Ibus.AddObject(ibu);
                dc.SaveChanges();
            }
        }
 /// <summary>
 /// Create a new Ibu object.
 /// </summary>
 /// <param name="idIbu">Initial value of the idIbu property.</param>
 public static Ibu CreateIbu(global::System.Int32 idIbu)
 {
     Ibu ibu = new Ibu();
     ibu.idIbu = idIbu;
     return ibu;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Ibus EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToIbus(Ibu ibu)
 {
     base.AddObject("Ibus", ibu);
 }