[]
DBConnection Wrap class that uses to custom a data provider for a specific data source.
public abstract class DbConnectionWrap<TInnerConnection, TInnerCommand, TInnerParameter> : DbConnection, IComponent, IDbConnection, IAsyncDisposable, IDisposable where TInnerConnection : DbConnection, new() where TInnerCommand : DbCommand, new() where TInnerParameter : DbParameter
| Name | Description |
|---|---|
| TInnerConnection | |
| TInnerCommand | |
| TInnerParameter |
| Name | Description |
|---|---|
| DbConnectionWrap() | The default constructor of DbConnectionWrap<TInnerConnection, TInnerCommand, TInnerParameter>. |
| DbConnectionWrap(string) | Initialize a new instance of DbConnectionWrap<TInnerConnection, TInnerCommand, TInnerParameter> given a connection string. |
| Name | Description |
|---|---|
| Logger | The logger where the runtime messages are passed to. |
| Name | Description |
|---|---|
| ConnectionString | Gets or sets the string used to open the connection. |
| ConnectionTimeout | Gets the time to wait while establishing a connection before terminating the attempt and generating an error. |
| DataSource | Gets the name of the database server to which to connect. |
| Database | Gets the name of the current database after a connection is opened, or the database name specified in the connection string before the connection is opened. |
| ServerVersion | Gets a string that represents the version of the server to which the object is connected. |
| State | Gets a string that describes the state of the connection. |
| UnderlyingConnection | The underlying connection used by this DbConnectionWrap<TInnerConnection, TInnerCommand, TInnerParameter>. |
| Name | Description |
|---|---|
| BeginDbTransaction(IsolationLevel) | Initiates and returns a new transaction with the connected data source. |
| ChangeDatabase(string) | Changes the current database for an open connection. |
| Close() | Closes the connection to the database. This is the preferred method of closing any open connection. |
| CreateDbCommand() | Creates and returns a DbCommand object associated with the current connection. |
| CreateDbCommandWrap() | Create a new DbCommandWrap<TInnerConnection, TInnerCommand, TInnerParameter>. |
| CreateInnerConnection() | Create a inner connection for this DbConnectionWrap<TInnerConnection, TInnerCommand, TInnerParameter> |
| CreateInnerConnection(string) | Create a inner connection considering a connection string. |
| Dispose(bool) | Disposes the resources of this connection. |
| EnlistTransaction(Transaction) | Enlists in the specified transaction. |
| GetSchema() | Returns schema information for the data source of this DbConnection. |
| GetSchema(string) | Returns schema information for the data source of this DbConnection using the specified string for the schema name. |
| GetSchema(string, string[]) | Returns schema information for the data source of this DbConnection using the specified string for the schema name and the specified string array for the restriction values. |
| InitializeLifetimeService() | Obtains a lifetime service object to control the lifetime policy for this instance. |
| Open() | Opens a database connection with the settings specified by the connection string. |
| OpenAsync(CancellationToken) | An asynchronous version of the open method. |
| Name | Description |
|---|---|
| StateChange | StateChange event |