Język

CommandCorrelatedEventData Klasa

Definicja

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

[System.Runtime.CompilerServices.Nullable(0)]
public class CommandCorrelatedEventData : Microsoft.EntityFrameworkCore.Diagnostics.DbContextEventData
public class CommandCorrelatedEventData : Microsoft.EntityFrameworkCore.Diagnostics.DbContextEventData
[<System.Runtime.CompilerServices.Nullable(0)>]
type CommandCorrelatedEventData = class
    inherit DbContextEventData
type CommandCorrelatedEventData = class
    inherit DbContextEventData
Public Class CommandCorrelatedEventData
Inherits DbContextEventData
Dziedziczenie
CommandCorrelatedEventData
Pochodne
Atrybuty

Uwagi

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

Konstruktory

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

Konstruuje ładunek zdarzenia.

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

Konstruuje ładunek zdarzenia.

Właściwości

Nazwisko Opis
CommandId

Identyfikator korelacji identyfikujący DbCommand używane wystąpienie.

CommandSource

Źródło polecenia.

Connection

DbConnection.

ConnectionId

Identyfikator korelacji identyfikujący DbConnection używane wystąpienie.

Context

Bieżący DbContextelement .

(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 LogLevel , który będzie używany do rejestrowania komunikatu dla tego zdarzenia.

(Odziedziczone po EventData)
StartTime

Godzina rozpoczęcia tego zdarzenia.

Metody

Nazwisko Opis
ToString()

Komunikat rejestratora opisujący to zdarzenie.

(Odziedziczone po EventData)

Dotyczy