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

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

Méthodes publiques

Méthode 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 méthode

Alls this instance.
public All ( ) : IEnumerable
Résultat IEnumerable

All() public méthode

Alls the specified package identifier.
public All ( string packageId ) : IEnumerable
packageId string The package identifier.
Résultat IEnumerable

ByKey() public méthode

Bies the key.
public ByKey ( string packageId, string key ) : string
packageId string The package identifier.
key string The key.
Résultat string

Delete() public méthode

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

Get() public méthode

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

PackageSettingRepository() public méthode

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

PackageSettingRepository() public méthode

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

Store() public méthode

Stores the specified model.
public Store ( DataModel model ) : void
model DataModel The model.
Résultat void

Store() public méthode

Stores the specified model.
public Store ( Services model ) : void
model Services The model.
Résultat void