/// <summary>
 /// 将emp添加至数据库
 /// </summary>
 /// <param name="emp"></param>
 private void AddEmpToDB(Emp emp)
 {
     try
     {
         OleDbConnection con = empDao.Begin();
         empDao.AddEmpItemDAO(con, emp);
         empDao.Commit();
     }
     catch (Exception)
     {
         empDao.RollBack();
         throw;
     }
     finally
     {
         empDao.Close();
     }
 }
        public void TestAddEmpItemDAO()
        {
            Emp emp = new Emp();

            emp.M_name   = "emp\" )'01";
            emp.M_statue = "0";
            emp.M_title  = "TM";

            EmpDAO          empDao = new EmpDAO();
            OleDbConnection con    = empDao.Begin();

            empDao.AddEmpItemDAO(con, emp);
            empDao.Commit();
            empDao.Close();
        }