Class PropertyEventData
- Namespace
- Microsoft.EntityFrameworkCore.Diagnostics
- Assembly
- Microsoft.EntityFrameworkCore.dll
A DiagnosticSource event payload class for events that have a property.
public class PropertyEventData : EventData
- Inheritance
-
PropertyEventData
- Derived
- Inherited Members
Remarks
See Logging, events, and diagnostics for more information and examples.
Constructors
PropertyEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData, string>, IReadOnlyProperty)
Constructs the event payload.
public PropertyEventData(EventDefinitionBase eventDefinition, Func<EventDefinitionBase, EventData, string> messageGenerator, IReadOnlyProperty property)
Parameters
eventDefinition
EventDefinitionBaseThe event definition.
messageGenerator
Func<EventDefinitionBase, EventData, string>A delegate that generates a log message for this event.
property
IReadOnlyPropertyThe property.
Properties
Property
The property.
public virtual IReadOnlyProperty Property { get; }