Table of Contents

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 EventDefinitionBase

The event definition.

messageGenerator Func<EventDefinitionBase, EventData, string>

A delegate that generates a log message for this event.

entityEntry EntityEntry

The entry for the entity instance on which the property value has changed.

property IProperty

The property.

value object

The old value.

Properties

EntityEntry

The entry for the entity instance.

public virtual EntityEntry EntityEntry { get; }

Property Value

EntityEntry

Property

The property.

public virtual IProperty Property { get; }

Property Value

IProperty

Value

The value.

public virtual object? Value { get; }

Property Value

object