internal void InsertParishioner(Parishioner parishioner)
 {
     using (SqlConnection connection = new SqlConnection(connectionString))
     {
         using (SqlCommand cmd = new SqlCommand("INSERT INTO parishioners VALUES", connection))
         {
             cmd.ExecuteNonQuery();
         }
     }
 }
Exemple #2
0
        public void InsertParishioner(Parishioner parishioner)
        {
            DataAccess ds = new DataAccess();

            ds.InsertParishioner(parishioner);
        }