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

            ds.InsertParishioner(parishioner);
        }