C# Класс Drey.Configuration.Repositories.SQLiteRepositories.PackageSettingRepository

This is the app settings, per package.
Наследование: SqlRepository, IPackageSettingRepository
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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.

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

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

Alls this instance.
public All ( ) : IEnumerable
Результат IEnumerable

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

Alls the specified package identifier.
public All ( string packageId ) : IEnumerable
packageId string The package identifier.
Результат IEnumerable

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

Bies the key.
public ByKey ( string packageId, string key ) : string
packageId string The package identifier.
key string The key.
Результат string

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

Deletes the specified package setting, by its key.
public Delete ( int id ) : void
id int The key of the package setting.
Результат void

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

Gets the specified package identifier.
public Get ( string packageId, string key ) : DataModel.PackageSetting
packageId string The package identifier.
key string The key.
Результат DataModel.PackageSetting

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

Initializes a new instance of the PackageSettingRepository class. Used by IoC container.
public PackageSettingRepository ( INutConfiguration configurationManager ) : Dapper
configurationManager INutConfiguration The configuration manager.
Результат Dapper

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

Initializes a new instance of the PackageSettingRepository class. Used for integration testing.
public PackageSettingRepository ( string databaseNameAndPath ) : Dapper
databaseNameAndPath string The database name and path.
Результат Dapper

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

Stores the specified model.
public Store ( DataModel model ) : void
model DataModel The model.
Результат void

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

Stores the specified model.
public Store ( Services model ) : void
model Services The model.
Результат void