IDbTransactionInterceptor.RolledBackToSavepointAsync メソッド

定義

EF がトランザクション セーブポイントにロールバックした直後に呼び出されます。

public System.Threading.Tasks.Task RolledBackToSavepointAsync (System.Data.Common.DbTransaction transaction, Microsoft.EntityFrameworkCore.Diagnostics.TransactionEventData eventData, System.Threading.CancellationToken cancellationToken = default);
public virtual System.Threading.Tasks.Task RolledBackToSavepointAsync (System.Data.Common.DbTransaction transaction, Microsoft.EntityFrameworkCore.Diagnostics.TransactionEventData eventData, System.Threading.CancellationToken cancellationToken = default);
abstract member RolledBackToSavepointAsync : System.Data.Common.DbTransaction * Microsoft.EntityFrameworkCore.Diagnostics.TransactionEventData * System.Threading.CancellationToken -> System.Threading.Tasks.Task
abstract member RolledBackToSavepointAsync : System.Data.Common.DbTransaction * Microsoft.EntityFrameworkCore.Diagnostics.TransactionEventData * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.RolledBackToSavepointAsync : System.Data.Common.DbTransaction * Microsoft.EntityFrameworkCore.Diagnostics.TransactionEventData * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function RolledBackToSavepointAsync (transaction As DbTransaction, eventData As TransactionEventData, Optional cancellationToken As CancellationToken = Nothing) As Task
Public Overridable Function RolledBackToSavepointAsync (transaction As DbTransaction, eventData As TransactionEventData, Optional cancellationToken As CancellationToken = Nothing) As Task

パラメーター

transaction
DbTransaction

トランザクション。

eventData
TransactionEventData

接続とトランザクションに関するコンテキスト情報。

cancellationToken
CancellationToken

CancellationTokenタスクの完了を待機している間に観察する 。

戻り値

非同期操作を表す Task

例外

CancellationToken が取り消されている場合。

適用対象