private void UpdateRecordToDB(Record record)
 {
     try
     {
         OleDbConnection con = recordDao.Begin();
         recordDao.UpdateRecordItemDAO(con, record);
         recordDao.Commit();
     }
     catch (Exception)
     {
         recordDao.RollBack();
         throw;
     }
     finally
     {
         recordDao.Close();
     }
 }
        public void TestUpdateRecordItemDAO()
        {
            Record record = new Record();

            record.UserName = "******";
            record.M_id     = 2;
            RecordDAO       recordDao = new RecordDAO();
            OleDbConnection con       = recordDao.Begin();

            recordDao.UpdateRecordItemDAO(con, record);

            recordDao.Commit();
            recordDao.Close();
        }