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

This is the app settings, per package.
Inheritance: SqlRepository, IPackageSettingRepository
Mostrar archivo Open project: dealproc/Drey Class Usage Examples

Public Methods

Method Description
All ( ) : IEnumerable

Alls this instance.

All ( string packageId ) : IEnumerable

Alls the specified package identifier.

ByKey ( string packageId, string key ) : string

Bies the key.

Delete ( int id ) : void

Deletes the specified package setting, by its key.

Get ( string packageId, string key ) : DataModel.PackageSetting

Gets the specified package identifier.

PackageSettingRepository ( INutConfiguration configurationManager ) : Dapper

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

PackageSettingRepository ( string databaseNameAndPath ) : Dapper

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

Store ( DataModel model ) : void

Stores the specified model.

Store ( Services model ) : void

Stores the specified model.

Method Details

All() public method

Alls this instance.
public All ( ) : IEnumerable
return IEnumerable

All() public method

Alls the specified package identifier.
public All ( string packageId ) : IEnumerable
packageId string The package identifier.
return IEnumerable

ByKey() public method

Bies the key.
public ByKey ( string packageId, string key ) : string
packageId string The package identifier.
key string The key.
return string

Delete() public method

Deletes the specified package setting, by its key.
public Delete ( int id ) : void
id int The key of the package setting.
return void

Get() public method

Gets the specified package identifier.
public Get ( string packageId, string key ) : DataModel.PackageSetting
packageId string The package identifier.
key string The key.
return DataModel.PackageSetting

PackageSettingRepository() public method

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

PackageSettingRepository() public method

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

Store() public method

Stores the specified model.
public Store ( DataModel model ) : void
model DataModel The model.
return void

Store() public method

Stores the specified model.
public Store ( Services model ) : void
model Services The model.
return void