Язык

CommandCorrelatedEventData Конструкторы

Определение

Перегрузки

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

Исходный код:
CommandCorrelatedEventData.cs
Исходный код:
CommandCorrelatedEventData.cs
Исходный код:
CommandCorrelatedEventData.cs
Исходный код:
CommandCorrelatedEventData.cs

Внимание!

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);
[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)

Параметры

eventDefinition
EventDefinitionBase

Определение события.

messageGenerator
Func<EventDefinitionBase,EventData,String>

Делегат, создающий сообщение журнала для этого события.

connection
DbConnection

Используется DbConnection.

context
DbContext

В DbContext настоящее время используется значение NULL, если оно не известно.

executeMethod
DbCommandMethod

Метод DbCommand.

commandId
Guid

Идентификатор корреляции, определяющий используемый DbCommand экземпляр.

connectionId
Guid

Идентификатор корреляции, определяющий используемый DbConnection экземпляр.

async
Boolean

Указывает, выполнялась ли команда асинхронно.

startTime
DateTimeOffset

Время начала этого события.

Атрибуты

Применяется к

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

Исходный код:
CommandCorrelatedEventData.cs
Исходный код:
CommandCorrelatedEventData.cs
Исходный код:
CommandCorrelatedEventData.cs
Исходный код:
CommandCorrelatedEventData.cs
Исходный код:
CommandCorrelatedEventData.cs
Исходный код:
CommandCorrelatedEventData.cs

Создает полезные данные события.

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)

Параметры

eventDefinition
EventDefinitionBase

Определение события.

messageGenerator
Func<EventDefinitionBase,EventData,String>

Делегат, создающий сообщение журнала для этого события.

connection
DbConnection

Используется DbConnection.

context
DbContext

В DbContext настоящее время используется значение NULL, если оно не известно.

executeMethod
DbCommandMethod

Метод DbCommand.

commandId
Guid

Идентификатор корреляции, определяющий используемый DbCommand экземпляр.

connectionId
Guid

Идентификатор корреляции, определяющий используемый DbConnection экземпляр.

async
Boolean

Указывает, выполнялась ли команда асинхронно.

startTime
DateTimeOffset

Время начала этого события.

commandSource
CommandSource

Источник команды.

Применяется к