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

Inheritance: SqlRepository, IConnectionStringRepository
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.

ByName ( string packageId, string name ) : string

Bies the name.

ConnectionStringRepository ( INutConfiguration configurationManager ) : Dapper

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

ConnectionStringRepository ( string databaseNameAndPath ) : Dapper

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

Delete ( int id ) : void

Deletes the package connection string, by its key.

Get ( string packageId, string name ) : DataModel.PackageConnectionString

Gets the specified package identifier.

Store ( DataModel model ) : void
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

ByName() public method

Bies the name.
public ByName ( string packageId, string name ) : string
packageId string The package identifier.
name string The name.
return string

ConnectionStringRepository() public method

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

ConnectionStringRepository() public method

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

Delete() public method

Deletes the package connection string, by its key.
public Delete ( int id ) : void
id int The key for the connection string to be deleted.
return void

Get() public method

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

Store() public method

public Store ( DataModel model ) : void
model DataModel
return void

Store() public method

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