示例#1
0
        public string GenerateDb()
        {
            //string ret = "";
            ManagerRepository manager = new ManagerRepository();

            if (manager.GenerateDB())
            {
                DB_NAME = manager.GetDataBaseName();
            }
            return(DB_NAME);
        }
示例#2
0
        public bool HasDatabase()
        {
            bool ret = false;
            ManagerRepository managerRepository = new ManagerRepository();

            if (managerRepository.GetDataBaseName() == DB_NAME)
            {
                ret = true;
            }
            return(ret);
        }