-
Notifications
You must be signed in to change notification settings - Fork 6
DapperAid.DbAccess
hnx8 edited this page Dec 13, 2022
·
3 revisions
ログ出力機能を提供するDB接続です。
public class DapperAid.DbAccess.LoggableDbConnection
: DbConnection, IComponent, IDisposable, IDbConnectionProperties
| Type | Name | Summary |
|---|---|---|
String |
ConnectionString | |
Int32 |
ConnectionTimeout | |
String |
Database | |
String |
DataSource | |
Action<Exception, DbCommand> |
ErrorLogger | エラーログ出力メソッド:引数=例外オブジェクト, 実行したDbCommand(DbCommandではない場合はnull) |
String |
ServerVersion | |
ConnectionState |
State | |
Action<String, Int64, DbCommand> |
TraceLogger | トレースログ出力メソッド:引数=結果概要テキスト(例:「HasResults」「Value=xxx」「Commit」), 実行所要時間mSec, 実行したDbCommand(DbCommandではない場合はnull) |
Events
| Type | Name | Summary |
|---|---|---|
StateChangeEventHandler |
StateChange |
Methods
| Type | Name | Summary |
|---|---|---|
DbTransaction |
BeginDbTransaction(IsolationLevel isolationLevel) |
ログ出力可能なDbTransactionオブジェクトを生成してトランザクションを開始し、トレースログを出力します。 |
void |
ChangeDatabase(String databaseName) |
|
void |
Close() | |
DbCommand |
CreateDbCommand() | ログ出力可能なDbCommandオブジェクトを生成します。 |
void |
Dispose(Boolean disposing) |
オブジェクト破棄 |
void |
EnlistTransaction(Transaction transaction) |
|
DataTable |
GetSchema() | |
DataTable |
GetSchema(String collectionName) |
|
DataTable |
GetSchema(String collectionName, String[] restrictionValues) |
|
void |
Open() | データベース接続を開き、トレースログを出力します。 |
Task |
OpenAsync(CancellationToken cancellationToken) |
非同期でデータベース接続を開き、トレースログを出力します。 |