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;
		}
Ejemplo n.º 2
0
        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();
		}
Ejemplo n.º 4
0
        protected override SiteSettings GetSiteSettings()
        {
            var settingsRepository = new MongoDBSettingsRepository(ConnectionString);

            return(settingsRepository.GetSiteSettings());
        }