Class GetDbConnection
This implementation of IGetDbConnection will create a System.Data.SqlClient.SqlConnection object when provided a Database object.
Inheritance
System.Object
GetDbConnection
Implements
Namespace: Albatross.Database.SqlServer
Assembly: Albatross.Database.SqlServer.dll
Syntax
public class GetDbConnection : IGetDbConnection
Constructors
| Improve this Doc View SourceGetDbConnection(IGetConnectionString)
Declaration
public GetDbConnection(IGetConnectionString getConnectionString)
Parameters
Type | Name | Description |
---|---|---|
IGetConnectionString | getConnectionString |
Methods
| Improve this Doc View SourceGet(Database)
Declaration
public IDbConnection Get(Database database)
Parameters
Type | Name | Description |
---|---|---|
Database | database |
Returns
Type | Description |
---|---|
System.Data.IDbConnection |