Compartir a través de


IRelationalCommandDiagnosticsLogger.CommandInitialized Método

Definición

Registros del CommandInitialized evento.

public System.Data.Common.DbCommand CommandInitialized (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Data.Common.DbCommand command, Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod commandMethod, Microsoft.EntityFrameworkCore.DbContext? context, Guid commandId, Guid connectionId, DateTimeOffset startTime, TimeSpan duration, Microsoft.EntityFrameworkCore.Diagnostics.CommandSource commandSource);
abstract member CommandInitialized : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod * Microsoft.EntityFrameworkCore.DbContext * Guid * Guid * DateTimeOffset * TimeSpan * Microsoft.EntityFrameworkCore.Diagnostics.CommandSource -> System.Data.Common.DbCommand
Public Function CommandInitialized (connection As IRelationalConnection, command As DbCommand, commandMethod As DbCommandMethod, context As DbContext, commandId As Guid, connectionId As Guid, startTime As DateTimeOffset, duration As TimeSpan, commandSource As CommandSource) As DbCommand

Parámetros

connection
IRelationalConnection

La conexión.

command
DbCommand

Objeto de comando de base de datos.

commandMethod
DbCommandMethod

Tipo de método al que se llamará en este comando.

context
DbContext

Que DbContext se usa actualmente, en null si no se conoce.

commandId
Guid

Identificador de correlación asociado al especificado DbCommand.

connectionId
Guid

Identificador de correlación asociado al objeto DbConnection que se está usando.

startTime
DateTimeOffset

Hora en que comenzó la ejecución.

duration
TimeSpan

Duración de la creación del comando.

commandSource
CommandSource

Origen del comando.

Devoluciones

Resultado interceptado.

Se aplica a