Condividi tramite


IRelationalCommandDiagnosticsLogger.CommandNonQueryExecuting Metodo

Definizione

Registra l'evento CommandExecuting .

public Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<int> CommandNonQueryExecuting (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Data.Common.DbCommand command, Microsoft.EntityFrameworkCore.DbContext? context, Guid commandId, Guid connectionId, DateTimeOffset startTime, Microsoft.EntityFrameworkCore.Diagnostics.CommandSource commandSource);
abstract member CommandNonQueryExecuting : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.DbContext * Guid * Guid * DateTimeOffset * Microsoft.EntityFrameworkCore.Diagnostics.CommandSource -> Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<int>
Public Function CommandNonQueryExecuting (connection As IRelationalConnection, command As DbCommand, context As DbContext, commandId As Guid, connectionId As Guid, startTime As DateTimeOffset, commandSource As CommandSource) As InterceptionResult(Of Integer)

Parametri

connection
IRelationalConnection

Connessione.

command
DbCommand

Oggetto comando del database.

context
DbContext

Oggetto DbContext attualmente in uso, su Null se non noto.

commandId
Guid

ID di correlazione associato all'oggetto specificato DbCommand.

connectionId
Guid

ID di correlazione associato all'oggetto DbConnection utilizzato.

startTime
DateTimeOffset

Ora di inizio dell'esecuzione.

commandSource
CommandSource

Origine del comando.

Restituisce

Risultato intercettato.

Si applica a