Table of Contents

Class CascadeDeleteOrphanEventData

Namespace
Microsoft.EntityFrameworkCore.Diagnostics
Assembly
Microsoft.EntityFrameworkCore.dll

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 : EntityEntryEventData
Inheritance
CascadeDeleteOrphanEventData
Inherited Members

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.

public CascadeDeleteOrphanEventData(EventDefinitionBase eventDefinition, Func<EventDefinitionBase, EventData, string> messageGenerator, EntityEntry entityEntry, IEntityType parentEntityTypes, EntityState state)

Parameters

eventDefinition EventDefinitionBase

The event definition.

messageGenerator Func<EventDefinitionBase, EventData, string>

A delegate that generates a log message for this event.

entityEntry EntityEntry

The entity entry for the entity that is being deleted.

parentEntityTypes IEntityType

The entity type to which the relationship was severed.

state EntityState

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

Properties

ParentEntityType

The entity type to which the relationship was severed.

public virtual IEntityType ParentEntityType { get; }

Property Value

IEntityType

State

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

public virtual EntityState State { get; }

Property Value

EntityState