C# Class Drey.Configuration.Repositories.SQLiteRepositories.GlobalSettingsRepository

Inheritance: SqlRepository, IGlobalSettingsRepository
Mostrar archivo Open project: dealproc/Drey

Public Methods

Method Description
GetSetting ( string key ) : string

Gets the setting.

GlobalSettingsRepository ( INutConfiguration configurationManager ) : Dapper

Initializes a new instance of the GlobalSettingsRepository class. Used by IoC container.

GlobalSettingsRepository ( string databaseNameAndPath ) : Dapper

Initializes a new instance of the GlobalSettingsRepository class. Used for integration testing.

SaveSetting ( string key, string value ) : void

Saves the setting.

this ( string key ) : string

Gets the System.String with the specified key.

Method Details

GetSetting() public method

Gets the setting.
public GetSetting ( string key ) : string
key string The key.
return string

GlobalSettingsRepository() public method

Initializes a new instance of the GlobalSettingsRepository class. Used by IoC container.
public GlobalSettingsRepository ( INutConfiguration configurationManager ) : Dapper
configurationManager INutConfiguration The configuration manager.
return Dapper

GlobalSettingsRepository() public method

Initializes a new instance of the GlobalSettingsRepository class. Used for integration testing.
public GlobalSettingsRepository ( string databaseNameAndPath ) : Dapper
databaseNameAndPath string The database name and path.
return Dapper

SaveSetting() public method

Saves the setting.
public SaveSetting ( string key, string value ) : void
key string The key.
value string The value.
return void

this() public method

Gets the System.String with the specified key.
public this ( string key ) : string
key string The key.
return string