/// <summary>
 /// Deprecated Method for adding a new object to the Balitas EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToBalitas(Balita balita)
 {
     base.AddObject("Balitas", balita);
 }
 /// <summary>
 /// Create a new Balita object.
 /// </summary>
 /// <param name="idBalita">Initial value of the idBalita property.</param>
 /// <param name="idAyah">Initial value of the idAyah property.</param>
 /// <param name="idIbu">Initial value of the idIbu property.</param>
 public static Balita CreateBalita(global::System.Int32 idBalita, global::System.Int32 idAyah, global::System.Int32 idIbu)
 {
     Balita balita = new Balita();
     balita.idBalita = idBalita;
     balita.idAyah = idAyah;
     balita.idIbu = idIbu;
     return balita;
 }
        public void InsertBalita(int idAyah, int idIbu, string nama, DateTime tl, string alamat, int anak,
            string jk, double bbl, double tbl)
        {
            using (DbBhmEntities dc = new DbBhmEntities())
            {
                Balita balita = new Balita();

                balita.idAyah = idAyah;
                balita.idIbu = idIbu;
                balita.idVitamin = null;
                balita.idImunisasi = null;
                balita.namaBalita = nama;
                balita.tlBalita = tl;
                balita.alamatBalita = alamat;
                balita.anakKe = anak;
                balita.jnsKelamin = jk;
                balita.bbl = bbl;
                balita.tbl = tbl;

                dc.Balitas.AddObject(balita);
                dc.SaveChanges();
            }
        }