コード例 #1
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;
		}
コード例 #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);
        }
コード例 #3
0
		protected override SiteSettings GetSiteSettings()
		{
			var settingsRepository = new MongoDBSettingsRepository(ConnectionString);
			return settingsRepository.GetSiteSettings();
		}
コード例 #4
0
        protected override SiteSettings GetSiteSettings()
        {
            var settingsRepository = new MongoDBSettingsRepository(ConnectionString);

            return(settingsRepository.GetSiteSettings());
        }