Share via


ForeignKeyCandidateEventData Class

Definition

A DiagnosticSource event payload class for incompatible foreign key properties.

public class ForeignKeyCandidateEventData : Microsoft.EntityFrameworkCore.Diagnostics.TwoPropertyBaseCollectionsEventData
type ForeignKeyCandidateEventData = class
    inherit TwoPropertyBaseCollectionsEventData
Public Class ForeignKeyCandidateEventData
Inherits TwoPropertyBaseCollectionsEventData
Inheritance

Remarks

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

Constructors

ForeignKeyCandidateEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, String, String, IReadOnlyList<IPropertyBase>, IReadOnlyList<IPropertyBase>)

Constructs the event payload.

ForeignKeyCandidateEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, String, String, IReadOnlyList<IReadOnlyPropertyBase>, IReadOnlyList<IReadOnlyPropertyBase>)

Constructs the event payload.

Properties

DependentToPrincipalNavigationSpecification

The name of the navigation property or entity type on the dependent end of the relationship.

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)
FirstPropertyCollection

The first property collection.

(Inherited from TwoPropertyBaseCollectionsEventData)
LogLevel

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

(Inherited from EventData)
PrincipalToDependentNavigationSpecification

The name of the navigation property or entity type on the principal end of the relationship.

SecondPropertyCollection

The second property collection.

(Inherited from TwoPropertyBaseCollectionsEventData)

Methods

ToString()

A logger message describing this event.

(Inherited from EventData)

Applies to