Sprache

CommandCorrelatedEventData Konstruktoren

Definition

Überlädt

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

Quelle:
CommandCorrelatedEventData.cs
Quelle:
CommandCorrelatedEventData.cs
Quelle:
CommandCorrelatedEventData.cs
Quelle:
CommandCorrelatedEventData.cs

Achtung

Use the overload with CommandSource

Erstellt die Ereignisnutzlast.

public CommandCorrelatedEventData(Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, System.Data.Common.DbConnection connection, Microsoft.EntityFrameworkCore.DbContext context, Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod executeMethod, Guid commandId, Guid connectionId, bool async, DateTimeOffset startTime);
[System.Obsolete("Use the overload with CommandSource")]
public CommandCorrelatedEventData(Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, System.Data.Common.DbConnection connection, Microsoft.EntityFrameworkCore.DbContext? context, Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod executeMethod, Guid commandId, Guid connectionId, bool async, DateTimeOffset startTime);
new Microsoft.EntityFrameworkCore.Diagnostics.CommandCorrelatedEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * System.Data.Common.DbConnection * Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod * Guid * Guid * bool * DateTimeOffset -> Microsoft.EntityFrameworkCore.Diagnostics.CommandCorrelatedEventData
[<System.Obsolete("Use the overload with CommandSource")>]
new Microsoft.EntityFrameworkCore.Diagnostics.CommandCorrelatedEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * System.Data.Common.DbConnection * Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod * Guid * Guid * bool * DateTimeOffset -> Microsoft.EntityFrameworkCore.Diagnostics.CommandCorrelatedEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), connection As DbConnection, context As DbContext, executeMethod As DbCommandMethod, commandId As Guid, connectionId As Guid, async As Boolean, startTime As DateTimeOffset)

Parameter

eventDefinition
EventDefinitionBase

Die Ereignisdefinition.

messageGenerator
Func<EventDefinitionBase,EventData,String>

Ein Delegat, der eine Protokollmeldung für dieses Ereignis generiert.

connection
DbConnection

Das verwendete DbConnection.

context
DbContext

Der DbContext aktuell verwendete Wert ist null, wenn er nicht bekannt ist.

executeMethod
DbCommandMethod

Die DbCommand-Methode.

commandId
Guid

Eine Korrelations-ID, die die DbCommand verwendete Instanz identifiziert.

connectionId
Guid

Eine Korrelations-ID, die die DbConnection verwendete Instanz identifiziert.

async
Boolean

Gibt an, ob der Befehl asynchron ausgeführt wurde.

startTime
DateTimeOffset

Die Startzeit dieses Ereignisses.

Attribute

Gilt für:

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

Quelle:
CommandCorrelatedEventData.cs
Quelle:
CommandCorrelatedEventData.cs
Quelle:
CommandCorrelatedEventData.cs
Quelle:
CommandCorrelatedEventData.cs
Quelle:
CommandCorrelatedEventData.cs
Quelle:
CommandCorrelatedEventData.cs

Erstellt die Ereignisnutzlast.

public CommandCorrelatedEventData(Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, System.Data.Common.DbConnection connection, Microsoft.EntityFrameworkCore.DbContext? context, Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod executeMethod, Guid commandId, Guid connectionId, bool async, DateTimeOffset startTime, Microsoft.EntityFrameworkCore.Diagnostics.CommandSource commandSource);
new Microsoft.EntityFrameworkCore.Diagnostics.CommandCorrelatedEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * System.Data.Common.DbConnection * Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod * Guid * Guid * bool * DateTimeOffset * Microsoft.EntityFrameworkCore.Diagnostics.CommandSource -> Microsoft.EntityFrameworkCore.Diagnostics.CommandCorrelatedEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), connection As DbConnection, context As DbContext, executeMethod As DbCommandMethod, commandId As Guid, connectionId As Guid, async As Boolean, startTime As DateTimeOffset, commandSource As CommandSource)

Parameter

eventDefinition
EventDefinitionBase

Die Ereignisdefinition.

messageGenerator
Func<EventDefinitionBase,EventData,String>

Ein Delegat, der eine Protokollmeldung für dieses Ereignis generiert.

connection
DbConnection

Das verwendete DbConnection.

context
DbContext

Der DbContext aktuell verwendete Wert ist null, wenn er nicht bekannt ist.

executeMethod
DbCommandMethod

Die DbCommand-Methode.

commandId
Guid

Eine Korrelations-ID, die die DbCommand verwendete Instanz identifiziert.

connectionId
Guid

Eine Korrelations-ID, die die DbConnection verwendete Instanz identifiziert.

async
Boolean

Gibt an, ob der Befehl asynchron ausgeführt wurde.

startTime
DateTimeOffset

Die Startzeit dieses Ereignisses.

commandSource
CommandSource

Quelle des Befehls.

Gilt für: