コード例 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="_userStats"></param>
        public void Persist(List <UserStats> _userStats)
        {
            UserStatsDAO dao = new UserStatsDAO(MongoDB);

            foreach (var userStat in _userStats)
            {
                dao.Persist(userStat);
            }
        }
コード例 #2
0
        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();
        }
コード例 #3
0
        public UserStats GetUserStats(Guid _userGuid)
        {
            UserStatsDAO dao = new UserStatsDAO(MongoDB);

            return(dao.GetByUser(_userGuid));
        }
コード例 #4
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="_userStats"></param>
        public void Persist(UserStats _userStats)
        {
            UserStatsDAO dao = new UserStatsDAO(MongoDB);

            dao.Persist(_userStats);
        }