Udostępnij za pośrednictwem


CommandCorrelatedEventData Klasa

Definicja

DiagnosticSource Ładunek zdarzenia dla zdarzeń skorelowany z elementem DbCommand.

public class CommandCorrelatedEventData : Microsoft.EntityFrameworkCore.Diagnostics.DbContextEventData
type CommandCorrelatedEventData = class
    inherit DbContextEventData
Public Class CommandCorrelatedEventData
Inherits DbContextEventData
Dziedziczenie
CommandCorrelatedEventData
Pochodne

Uwagi

Aby uzyskać więcej informacji i przykładów , zobacz Rejestrowanie, zdarzenia i diagnostyka .

Konstruktory

CommandCorrelatedEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbConnection, DbContext, DbCommandMethod, Guid, Guid, Boolean, DateTimeOffset)
Nieaktualne..

Konstruuje ładunek zdarzenia.

CommandCorrelatedEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbConnection, DbContext, DbCommandMethod, Guid, Guid, Boolean, DateTimeOffset, CommandSource)

Konstruuje ładunek zdarzenia.

Właściwości

CommandId

Identyfikator korelacji, który identyfikuje DbCommand używane wystąpienie.

CommandSource

Źródło polecenia.

Connection

Element DbConnection.

ConnectionId

Identyfikator korelacji, który identyfikuje DbConnection używane wystąpienie.

Context

Bieżąca klasa DbContext.

(Odziedziczone po DbContextEventData)
EventId

Element EventId definiujący identyfikator i nazwę komunikatu.

(Odziedziczone po EventData)
EventIdCode

Ciąg reprezentujący kod, w którym zdefiniowano to zdarzenie.

(Odziedziczone po EventData)
ExecuteMethod

Metoda DbCommandMethod .

IsAsync

Wskazuje, czy operacja jest wykonywana asynchronicznie.

LogLevel

Element , który będzie używany do rejestrowania LogLevel komunikatu dla tego zdarzenia.

(Odziedziczone po EventData)
StartTime

Godzina rozpoczęcia tego zdarzenia.

Metody

ToString()

Komunikat rejestratora opisujący to zdarzenie.

(Odziedziczone po EventData)

Dotyczy