Partilhar via


RelationalLoggerExtensions.TransactionStarting Método

Definição

Logs do TransactionStarting evento.

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

Parâmetros

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Database.Transaction>

O agente diagnóstico a ser usado.

connection
IRelationalConnection

A conexão.

isolationLevel
IsolationLevel

O nível de isolamento da 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