Partager via


IDbTransactionInterceptor.RolledBackToSavepointAsync Méthode

Définition

Appelé immédiatement après qu’EF restaure à un point d’enregistrement de transaction.

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

Paramètres

transaction
DbTransaction

Transaction.

eventData
TransactionEventData

Informations contextuelles sur la connexion et la transaction.

cancellationToken
CancellationToken

CancellationToken à observer en attendant la fin de la tâche.

Retours

Task représentant l’opération asynchrone.

Exceptions

S’applique à