C# Класс Roadkill.Core.Services.SettingsService

Provides common tasks for changing the Roadkill application settings.
Наследование: Roadkill.Core.Services.ServiceBase
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ClearUserTable ( ) : void

Clears all users from the system.

CreateTables ( SettingsViewModel model ) : void

Creates the database schema tables.

GetSiteSettings ( ) : SiteSettings

Retrieves the current site settings.

SaveSiteSettings ( SettingsViewModel model ) : void

Saves all settings that are stored in the database, to the configuration table.

SettingsService ( Roadkill.Core.Configuration.ApplicationSettings settings, IRepository repository ) : System

Описание методов

ClearUserTable() публичный Метод

Clears all users from the system.
An databaseerror occurred while clearing the user table.
public ClearUserTable ( ) : void
Результат void

CreateTables() публичный Метод

Creates the database schema tables.
An datastore error occurred while creating the database tables.
public CreateTables ( SettingsViewModel model ) : void
model Roadkill.Core.Mvc.ViewModels.SettingsViewModel The settings data.
Результат void

GetSiteSettings() публичный Метод

Retrieves the current site settings.
public GetSiteSettings ( ) : SiteSettings
Результат Roadkill.Core.Configuration.SiteSettings

SaveSiteSettings() публичный Метод

Saves all settings that are stored in the database, to the configuration table.
An datastore error occurred while saving the configuration.
public SaveSiteSettings ( SettingsViewModel model ) : void
model Roadkill.Core.Mvc.ViewModels.SettingsViewModel Summary data containing the settings.
Результат void

SettingsService() публичный Метод

public SettingsService ( Roadkill.Core.Configuration.ApplicationSettings settings, IRepository repository ) : System
settings Roadkill.Core.Configuration.ApplicationSettings
repository IRepository
Результат System