public void TestFindRecordsToAllocateDAO()
        {
            RecordDAO       recordDao = new RecordDAO();
            OleDbConnection con       = recordDao.Begin();
            List <Record>   records   = recordDao.FindRecordsToAllocateDAO(con);

            recordDao.Commit();
            recordDao.Close();
        }
Exemple #2
0
        private List <Record> FindRecordsToAllocate()
        {
            List <Record> records = null;

            try
            {
                OleDbConnection con = recordDao.Begin();
                records = recordDao.FindRecordsToAllocateDAO(con);
                recordDao.Commit();
                return(records);
            }
            catch (Exception)
            {
                recordDao.RollBack();
                throw;
            }
            finally
            {
                recordDao.Close();
            }
        }