Sdílet prostřednictvím


RelationalLoggerExtensions.TransactionCommitted Metoda

Definice

Protokoluje událost TransactionCommitted .

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

Parametry

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Database.Transaction>

Diagnostický protokolovací nástroj, který se má použít.

connection
IRelationalConnection

Připojení.

transaction
DbTransaction

Transakce.

transactionId
Guid

ID korelace přidružené k DbTransaction.

startTime
DateTimeOffset

Čas, kdy byla operace spuštěna.

duration
TimeSpan

Uplynulý čas od spuštění operace.

Platí pro