RelationalLoggerExtensions.TransactionError Método

Definición

Registra el TransactionError evento.

public static void TransactionError (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Transaction> diagnostics, Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Data.Common.DbTransaction transaction, Guid transactionId, string action, Exception exception, DateTimeOffset startTime, TimeSpan duration);
static member TransactionError : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Transaction> * Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbTransaction * Guid * string * Exception * DateTimeOffset * TimeSpan -> unit
<Extension()>
Public Sub TransactionError (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.Database.Transaction), connection As IRelationalConnection, transaction As DbTransaction, transactionId As Guid, action As String, exception As Exception, startTime As DateTimeOffset, duration As TimeSpan)

Parámetros

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Database.Transaction>

Registrador de diagnóstico que se va a usar.

connection
IRelationalConnection

La conexión.

transaction
DbTransaction

Transacción.

transactionId
Guid

Identificador de correlación asociado a DbTransaction.

action
String

Acción que se realiza.

exception
Exception

Excepción que representa el error.

startTime
DateTimeOffset

Hora a la que se inició la operación.

duration
TimeSpan

Tiempo transcurrido desde el momento en que se inició la operación.

Se aplica a