Share via


CascadeDeleteOrphanEventData Class

Definition

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

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

Remarks

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

Constructors

CascadeDeleteOrphanEventData(EventDefinitionBase, Func<EventDefinitionBase,EventData,String>, EntityEntry, IEntityType, 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)
ParentEntityType

The entity type to which the relationship was severed.

State

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

Methods

ToString()

A logger message describing this event.

(Inherited from EventData)

Applies to