Share via


ForeignKeyCandidateEventData Class

Definition

A DiagnosticSource event payload class for incompatible foreign key properties.

[System.Runtime.CompilerServices.Nullable(0)]
public class ForeignKeyCandidateEventData : Microsoft.EntityFrameworkCore.Diagnostics.TwoPropertyBaseCollectionsEventData
public class ForeignKeyCandidateEventData : Microsoft.EntityFrameworkCore.Diagnostics.TwoPropertyBaseCollectionsEventData
[<System.Runtime.CompilerServices.Nullable(0)>]
type ForeignKeyCandidateEventData = class
    inherit TwoPropertyBaseCollectionsEventData
type ForeignKeyCandidateEventData = class
    inherit TwoPropertyBaseCollectionsEventData
Public Class ForeignKeyCandidateEventData
Inherits TwoPropertyBaseCollectionsEventData
Inheritance
Attributes

Remarks

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

Constructors

Name Description
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

Name Description
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

Name Description
ToString()

A logger message describing this event.

(Inherited from EventData)

Applies to