/// <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); } }
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(); }
public UserStats GetUserStats(Guid _userGuid) { UserStatsDAO dao = new UserStatsDAO(MongoDB); return(dao.GetByUser(_userGuid)); }
/// <summary> /// /// </summary> /// <param name="_userStats"></param> public void Persist(UserStats _userStats) { UserStatsDAO dao = new UserStatsDAO(MongoDB); dao.Persist(_userStats); }