public void InsertAyah(string nama, string pkj, DateTime tl, string alamat)
        {
            using (DbBhmEntities dc = new DbBhmEntities())
            {
                Ayah ayah = new Ayah();

                ayah.namaAyah = nama;
                ayah.pkjAyah = pkj;
                ayah.tlAyah = tl;
                ayah.alamatAyah = alamat;

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