Language

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 インスタンスを識別する関連付け ID。

connectionId
Guid

使用されている DbConnection インスタンスを識別する関連付け ID。

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 インスタンスを識別する関連付け ID。

connectionId
Guid

使用されている DbConnection インスタンスを識別する関連付け ID。

async
Boolean

コマンドが非同期に実行されたかどうかを示します。

startTime
DateTimeOffset

このイベントの開始時刻。

commandSource
CommandSource

コマンドのソース。

適用対象