Ejemplo n.º 1
0
        public void BuildDB(bool _useTGUserDAO)
        {
            CannedEmailDAO cannedEmailDAO = new CannedEmailDAO(MongoDB);

            cannedEmailDAO.BuildTable();

            SystemEmailDAO systemEmailDAO = new SystemEmailDAO(MongoDB);

            systemEmailDAO.BuildTable();

            TGEmailDAO emailDAO = new TGEmailDAO(MongoDB);

            emailDAO.BuildTable();

            TGEulaAgreementDAO eulaAgreementDAO = new TGEulaAgreementDAO(MongoDB);

            eulaAgreementDAO.BuildTable();

            TGEulaDAO eulaDAO = new TGEulaDAO(MongoDB);

            eulaDAO.BuildTable();

            TGUserAuthorizationDAO userAuthorizationDAO = new TGUserAuthorizationDAO(MongoDB);

            userAuthorizationDAO.BuildTable();

            if (_useTGUserDAO)
            {
                TGUserDAO userDAO = new TGUserDAO(MongoDB);
                userDAO.BuildTable();
            }

            TGUserEmailValidationDAO userEmailValidationDAO = new TGUserEmailValidationDAO(MongoDB);

            userEmailValidationDAO.BuildTable();

            TGUserPasswordDAO userPasswordDAO = new TGUserPasswordDAO(MongoDB);

            userPasswordDAO.BuildTable();

            TGUserRoleDAO userRoleDAO = new TGUserRoleDAO(MongoDB);

            userRoleDAO.BuildTable();

            WebLogEntryDAO webLogEntryDAO = new WebLogEntryDAO(MongoDB);

            webLogEntryDAO.BuildTable();
        }
        public void BuildDB()
        {
            HydrantDAO hydrantDAO = new HydrantDAO(MongoDB);

            hydrantDAO.BuildTable();

            HydrantImageDAO hydrantImageDAO = new HydrantImageDAO(MongoDB);

            hydrantImageDAO.BuildTable();

            TagDAO tagDAO = new TagDAO(MongoDB);

            tagDAO.BuildTable();

            UserDAO userDAO = new UserDAO(MongoDB);

            userDAO.BuildTable();

            UserStatsDAO userStatsDAO = new UserStatsDAO(MongoDB);

            userStatsDAO.BuildTable();

            CannedEmailDAO cannedEmailDAO = new CannedEmailDAO(MongoDB);

            cannedEmailDAO.BuildTable();

            SystemEmailDAO systemEmailDAO = new SystemEmailDAO(MongoDB);

            systemEmailDAO.BuildTable();

            TGUserAuthorizationDAO tgUserAuthorizationDAO = new TGUserAuthorizationDAO(MongoDB);

            tgUserAuthorizationDAO.BuildTable();

            TGUserEmailValidationDAO tgUserEmailValidationDAO = new TGUserEmailValidationDAO(MongoDB);

            tgUserEmailValidationDAO.BuildTable();

            TGUserPasswordDAO tgUserPasswordDAO = new TGUserPasswordDAO(MongoDB);

            tgUserPasswordDAO.BuildTable();

            WebLogEntryDAO webLogEntryDAO = new WebLogEntryDAO(MongoDB);

            webLogEntryDAO.BuildTable();
        }
Ejemplo n.º 3
0
        public TGUserPassword GetUserPasswordByUser(Guid _userGuid)
        {
            TGUserPasswordDAO dao = new TGUserPasswordDAO(MongoDB);

            return(dao.GetOneItem <TGUserPassword>("UserGuid", _userGuid.ToString()));
        }
Ejemplo n.º 4
0
        public void Persist(TGUserPassword _userPassword)
        {
            TGUserPasswordDAO dao = new TGUserPasswordDAO(MongoDB);

            dao.Persist(_userPassword);
        }
Ejemplo n.º 5
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="_guid"></param>
        /// <returns></returns>
        public TGUserPassword GetTGUserPassword(Guid _guid)
        {
            TGUserPasswordDAO dao = new TGUserPasswordDAO(MongoDB);

            return(dao.Get(_guid));
        }