Share via


EventData Class

Definition

A base class for all Entity Framework DiagnosticSource event payloads.

[System.Runtime.CompilerServices.Nullable(0)]
public class EventData
public class EventData
[<System.Runtime.CompilerServices.Nullable(0)>]
type EventData = class
type EventData = class
Public Class EventData
Inheritance
EventData
Derived
Attributes

Remarks

See Logging, events, and diagnostics for more information and examples.

Constructors

Name Description
EventData(EventDefinitionBase, Func<EventDefinitionBase,EventData,String>)

Constructs the event payload.

Properties

Name Description
EventId

The EventId that defines the message ID and name.

EventIdCode

A string representing the code where this event is defined.

LogLevel

The LogLevel that would be used to log message for this event.

Methods

Name Description
ToString()

A logger message describing this event.

Applies to