Class ForeignKeyCandidateEventData
- Namespace
- Microsoft.EntityFrameworkCore.Diagnostics
- Assembly
- Microsoft.EntityFrameworkCore.dll
A DiagnosticSource event payload class for incompatible foreign key properties.
public class ForeignKeyCandidateEventData : TwoPropertyBaseCollectionsEventData
- Inheritance
-
ForeignKeyCandidateEventData
- Inherited Members
Remarks
See Logging, events, and diagnostics for more information and examples.
Constructors
ForeignKeyCandidateEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData, string>, string, string, IReadOnlyList<IReadOnlyPropertyBase>, IReadOnlyList<IReadOnlyPropertyBase>)
Constructs the event payload.
public ForeignKeyCandidateEventData(EventDefinitionBase eventDefinition, Func<EventDefinitionBase, EventData, string> messageGenerator, string dependentToPrincipalNavigationSpecification, string principalToDependentNavigationSpecification, IReadOnlyList<IReadOnlyPropertyBase> firstPropertyCollection, IReadOnlyList<IReadOnlyPropertyBase> secondPropertyCollection)
Parameters
eventDefinition
EventDefinitionBaseThe event definition.
messageGenerator
Func<EventDefinitionBase, EventData, string>A delegate that generates a log message for this event.
dependentToPrincipalNavigationSpecification
stringThe name of the navigation property or entity type on the dependent end of the relationship.
principalToDependentNavigationSpecification
stringThe name of the navigation property or entity type on the principal end of the relationship.
firstPropertyCollection
IReadOnlyList<IReadOnlyPropertyBase>The first property collection.
secondPropertyCollection
IReadOnlyList<IReadOnlyPropertyBase>The second property collection.
Properties
DependentToPrincipalNavigationSpecification
The name of the navigation property or entity type on the dependent end of the relationship.
public virtual string DependentToPrincipalNavigationSpecification { get; }
Property Value
PrincipalToDependentNavigationSpecification
The name of the navigation property or entity type on the principal end of the relationship.
public virtual string PrincipalToDependentNavigationSpecification { get; }