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

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

Public Methods

Method Description
All ( ) : IEnumerable

Alls this instance.

Delete ( string packageId, string version ) : void

Deletes all package references from the underlying store, matching the provided id and version.

GetPackages ( ) : IEnumerable

Gets the packages.

GetReleases ( string packageId ) : IEnumerable

Gets the releases.

PackageRepository ( INutConfiguration configurationManager ) : Dapper

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

PackageRepository ( string databaseNameAndPath ) : Dapper

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

Store ( DataModel release ) : DataModel.Release

Stores the specified release.

Method Details

All() public method

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

Delete() public method

Deletes all package references from the underlying store, matching the provided id and version.
public Delete ( string packageId, string version ) : void
packageId string The package identifier.
version string The version.
return void

GetPackages() public method

Gets the packages.
public GetPackages ( ) : IEnumerable
return IEnumerable

GetReleases() public method

Gets the releases.
public GetReleases ( string packageId ) : IEnumerable
packageId string The package identifier.
return IEnumerable

PackageRepository() public method

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

PackageRepository() public method

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

Store() public method

Stores the specified release.
public Store ( DataModel release ) : DataModel.Release
release DataModel The release.
return DataModel.Release