C# 클래스 Roadkill.Core.Services.SettingsService

Provides common tasks for changing the Roadkill application settings.
상속: Roadkill.Core.Services.ServiceBase
파일 보기 프로젝트 열기: LocalGovDigital/pipeline 1 사용 예제들

공개 메소드들

메소드 설명
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