Condividi tramite


RelationalLoggerExtensions.TransactionStarting Metodo

Definizione

Registra l'evento TransactionStarting .

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)

Parametri

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Database.Transaction>

Logger di diagnostica da usare.

connection
IRelationalConnection

Connessione.

isolationLevel
IsolationLevel

Livello di isolamento delle transazioni.

transactionId
Guid

ID di correlazione associato a DbTransaction.

startTime
DateTimeOffset

Ora di avvio dell'operazione.

Restituisce

Risultato dell'esecuzione, che può essere stato modificato da un intercettatore.

Si applica a