Partilhar via


RelationalLoggerExtensions.TransactionRollingBack Método

Definição

Logs do TransactionRollingBack evento.

public static Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult TransactionRollingBack (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Transaction> diagnostics, Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Data.Common.DbTransaction transaction, Guid transactionId, DateTimeOffset startTime);
static member TransactionRollingBack : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Transaction> * Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbTransaction * Guid * DateTimeOffset -> Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult
<Extension()>
Public Function TransactionRollingBack (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.Database.Transaction), connection As IRelationalConnection, transaction As DbTransaction, transactionId As Guid, startTime As DateTimeOffset) As InterceptionResult

Parâmetros

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Database.Transaction>

O agente diagnóstico a ser usado.

connection
IRelationalConnection

A conexão.

transaction
DbTransaction

A transação.

transactionId
Guid

A ID de correlação associada ao DbTransaction.

startTime
DateTimeOffset

A hora em que a operação foi iniciada.

Retornos

O resultado da execução, que pode ter sido modificado por um interceptador.

Aplica-se a