protected override bool HasEmptyTables() { var settingsRepository = new MongoDBSettingsRepository(ConnectionString); var userRepository = new MongoDBUserRepository(ConnectionString); var pageRepository = new MongoDBPageRepository(ConnectionString); return pageRepository.AllPages().Count() == 0 && pageRepository.AllPageContents().Count() == 0 && userRepository.FindAllAdmins().Count() == 0 && userRepository.FindAllEditors().Count() == 0 && settingsRepository.GetSiteSettings() != null; }
protected override bool HasEmptyTables() { var settingsRepository = new MongoDBSettingsRepository(ConnectionString); var userRepository = new MongoDBUserRepository(ConnectionString); var pageRepository = new MongoDBPageRepository(ConnectionString); return(pageRepository.AllPages().Count() == 0 && pageRepository.AllPageContents().Count() == 0 && userRepository.FindAllAdmins().Count() == 0 && userRepository.FindAllEditors().Count() == 0 && settingsRepository.GetSiteSettings() != null); }
protected override SiteSettings GetSiteSettings() { var settingsRepository = new MongoDBSettingsRepository(ConnectionString); return settingsRepository.GetSiteSettings(); }
protected override SiteSettings GetSiteSettings() { var settingsRepository = new MongoDBSettingsRepository(ConnectionString); return(settingsRepository.GetSiteSettings()); }