Language

CommandCorrelatedEventData クラス

定義

DbCommandと関連付けられたイベントのDiagnosticSource イベント ペイロード。

[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
継承
CommandCorrelatedEventData
派生
属性

注釈

詳細と例については 、「ログ記録、イベント、診断 」を参照してください。

コンストラクター

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

イベント ペイロードを構築します。

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

イベント ペイロードを構築します。

プロパティ

Name 説明
CommandId

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

CommandSource

コマンドのソース。

Connection

DbConnection。

ConnectionId

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

Context

現在の DbContext。

(継承元 DbContextEventData)
EventId

メッセージ ID と名前を定義する EventId 。

(継承元 EventData)
EventIdCode

このイベントが定義されているコードを表す文字列。

(継承元 EventData)
ExecuteMethod

DbCommandMethod メソッド。

IsAsync

操作が非同期的に実行されているかどうかを示します。

LogLevel

このイベントのメッセージをログに記録するために使用される LogLevel 。

(継承元 EventData)
StartTime

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

メソッド

Name 説明
ToString()

このイベントを説明するロガー メッセージ。

(継承元 EventData)

適用対象