Class PropertyValueEventData
- Namespace
- Microsoft.EntityFrameworkCore.Diagnostics
- Assembly
- Microsoft.EntityFrameworkCore.dll
A DiagnosticSource event payload class for events that indicate a property value.
public class PropertyValueEventData : PropertyEventData
- Inheritance
-
PropertyValueEventData
- Inherited Members
Remarks
See Logging, events, and diagnostics for more information and examples.
Constructors
PropertyValueEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData, string>, EntityEntry, IProperty, object?)
Constructs the event payload.
public PropertyValueEventData(EventDefinitionBase eventDefinition, Func<EventDefinitionBase, EventData, string> messageGenerator, EntityEntry entityEntry, IProperty property, object? value)
Parameters
eventDefinition
EventDefinitionBaseThe event definition.
messageGenerator
Func<EventDefinitionBase, EventData, string>A delegate that generates a log message for this event.
entityEntry
EntityEntryThe entry for the entity instance on which the property value has changed.
property
IPropertyThe property.
value
objectThe old value.
Properties
EntityEntry
The entry for the entity instance.
public virtual EntityEntry EntityEntry { get; }
Property Value
Property
The property.
public virtual IProperty Property { get; }
Property Value
Value
The value.
public virtual object? Value { get; }