DatabaseLogFormatter.Opened メソッド

定義

の後に Open() 呼び出されるか、非同期に対応する が呼び出されます。 このメソッドの既定の実装では、 を にContext設定してDbContextフィルター処理し(存在する場合)、イベントをログに記録します。

public virtual void Opened (System.Data.Common.DbConnection connection, System.Data.Entity.Infrastructure.Interception.DbConnectionInterceptionContext interceptionContext);
abstract member Opened : System.Data.Common.DbConnection * System.Data.Entity.Infrastructure.Interception.DbConnectionInterceptionContext -> unit
override this.Opened : System.Data.Common.DbConnection * System.Data.Entity.Infrastructure.Interception.DbConnectionInterceptionContext -> unit
Public Overridable Sub Opened (connection As DbConnection, interceptionContext As DbConnectionInterceptionContext)

パラメーター

connection
DbConnection

開かれた接続。

interceptionContext
DbConnectionInterceptionContext

呼び出しに関連付けられているコンテキスト情報。

実装

適用対象