Table of Contents

Class SharedDependentEntityEventData

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

A DiagnosticSource event payload class for events that reference two IEntityType instances.

public class SharedDependentEntityEventData : EventData
Inheritance
SharedDependentEntityEventData
Inherited Members

Remarks

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

Constructors

SharedDependentEntityEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData, string>, IEntityType, IEntityType)

Constructs the event payload.

public SharedDependentEntityEventData(EventDefinitionBase eventDefinition, Func<EventDefinitionBase, EventData, string> messageGenerator, IEntityType firstEntityType, IEntityType secondEntityType)

Parameters

eventDefinition EventDefinitionBase

The event definition.

messageGenerator Func<EventDefinitionBase, EventData, string>

A delegate that generates a log message for this event.

firstEntityType IEntityType

The first IEntityType.

secondEntityType IEntityType

The second IEntityType.

Properties

FirstEntityType

The first IEntityType.

public virtual IEntityType FirstEntityType { get; }

Property Value

IEntityType

SecondEntityType

The second IEntityType.

public virtual IEntityType SecondEntityType { get; }

Property Value

IEntityType