Partilhar via


RelationalLoggerExtensions.TransactionStarted Método

Definição

Logs do TransactionStarted evento.

public static System.Data.Common.DbTransaction TransactionStarted (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, TimeSpan duration);
static member TransactionStarted : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Transaction> * Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbTransaction * Guid * DateTimeOffset * TimeSpan -> System.Data.Common.DbTransaction
<Extension()>
Public Function TransactionStarted (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.Database.Transaction), connection As IRelationalConnection, transaction As DbTransaction, transactionId As Guid, startTime As DateTimeOffset, duration As TimeSpan) As DbTransaction

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.

duration
TimeSpan

A quantidade de tempo antes da conexão ser aberta.

Retornos

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

Aplica-se a