StateChangedEventData Class

Definition

A DiagnosticSource event payload class for events that indicate a change of a tracked entity from one EntityState to another.

public class StateChangedEventData : Microsoft.EntityFrameworkCore.Diagnostics.EntityEntryEventData
type StateChangedEventData = class
    inherit EntityEntryEventData
Public Class StateChangedEventData
Inherits EntityEntryEventData
Inheritance
StateChangedEventData

Remarks

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

Constructors

StateChangedEventData(EventDefinitionBase, Func<EventDefinitionBase,EventData,String>, EntityEntry, EntityState, EntityState)

Constructs the event payload.

Properties

EntityEntry

The entity entry.

(Inherited from EntityEntryEventData)
EventId

The EventId that defines the message ID and name.

(Inherited from EventData)
EventIdCode

A string representing the code where this event is defined.

(Inherited from EventData)
LogLevel

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

(Inherited from EventData)
NewState

The new state.

OldState

The old state.

Methods

ToString()

A logger message describing this event.

(Inherited from EventData)

Applies to