예제 #1
0
        public List <TestStatus> GetDataTestStatus()
        {
            SessionFactory SF = new SessionFactory();

            SF.Init();
            SF.OpenSession();

            GenericDaoImpl <TestStatus, int> testStatusDao = new GenericDaoImpl <TestStatus, int>(SF.GetSession());
            List <TestStatus> list = new List <TestStatus>();

            list = testStatusDao.GetAll().ToList();

            SF.CloseSession();
            return(list);
        }
예제 #2
0
        public List <Speciment> GetDataSpecimentName()
        {
            SessionFactory SF = new SessionFactory();

            SF.Init();
            SF.OpenSession();

            GenericDaoImpl <Speciment, int> specimentNameDao = new GenericDaoImpl <Speciment, int>(SF.GetSession());
            List <Speciment> list = new List <Speciment>();

            list = specimentNameDao.GetAll().ToList();

            SF.CloseSession();
            return(list);
        }
예제 #3
0
        public List <Doctor> GetDataAllDoctors()
        {
            SessionFactory SF = new SessionFactory();

            SF.Init();
            SF.OpenSession();

            GenericDaoImpl <Doctor, int> doctorDao = new GenericDaoImpl <Doctor, int>(SF.GetSession());
            List <Doctor> list = new List <Doctor>();

            list = doctorDao.GetAll().ToList();

            SF.CloseSession();
            return(list);
        }
예제 #4
0
        public List <Gender> GetDataGender()
        {
            SessionFactory SF = new SessionFactory();

            SF.Init();
            SF.OpenSession();

            GenericDaoImpl <Gender, int> genderDao = new GenericDaoImpl <Gender, int>(SF.GetSession());
            List <Gender> list = new List <Gender>();

            list = genderDao.GetAll().ToList();

            SF.CloseSession();
            return(list);
        }