Share via


CascadeDeleteEventData Class

Definition

A DiagnosticSource event payload class for events that indicate an entity is being deleted because its parent entity has been deleted.

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

Remarks

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

Constructors

CascadeDeleteEventData(EventDefinitionBase, Func<EventDefinitionBase,EventData,String>, EntityEntry, EntityEntry, 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)
ParentEntityEntry

The entity entry for the parent that trigger the cascade.

State

The state that the child is transitioning to--usually 'Deleted'.

Methods

ToString()

A logger message describing this event.

(Inherited from EventData)

Applies to