次の方法で共有


DbTransactionDispatcher.GetConnection メソッド

定義

public virtual System.Data.Common.DbConnection GetConnection(System.Data.Common.DbTransaction transaction, System.Data.Entity.Infrastructure.Interception.DbInterceptionContext interceptionContext);
abstract member GetConnection : System.Data.Common.DbTransaction * System.Data.Entity.Infrastructure.Interception.DbInterceptionContext -> System.Data.Common.DbConnection
override this.GetConnection : System.Data.Common.DbTransaction * System.Data.Entity.Infrastructure.Interception.DbInterceptionContext -> System.Data.Common.DbConnection
Public Overridable Function GetConnection (transaction As DbTransaction, interceptionContext As DbInterceptionContext) As DbConnection

パラメーター

transaction
DbTransaction

操作が実行されるトランザクション。

interceptionContext
DbInterceptionContext

行われる呼び出しのコンテキストに関するオプションの情報。

戻り値

インターセプターによって変更された可能性がある操作の結果。

注釈

プロパティの値は、このメソッドによって返されることに注意してください。 インターセプターに渡される前にインターセプト コンテキストが複製されるため、このメソッドに渡されるインターセプト コンテキストでは結果を使用できません。

適用対象