ForeignKeyDiscoveryConvention.MatchDependentKeyProperty Method (AssociationType, AssociationEndMember, EdmProperty, EntityType, EdmProperty)
When overriden returns true if dependentProperty should be part of the foreign key.
Assembly: EntityFramework (in EntityFramework.dll)
protected abstract bool MatchDependentKeyProperty( AssociationType associationType, AssociationEndMember dependentAssociationEnd, EdmProperty dependentProperty, EntityType principalEntityType, EdmProperty principalKeyProperty )
Parameters
- associationType
-
Type:
System.Data.Entity.Core.Metadata.Edm.AssociationType
The association type being configured.
- dependentAssociationEnd
-
Type:
System.Data.Entity.Core.Metadata.Edm.AssociationEndMember
The dependent end.
- dependentProperty
-
Type:
System.Data.Entity.Core.Metadata.Edm.EdmProperty
The candidate property on the dependent end.
- principalEntityType
-
Type:
System.Data.Entity.Core.Metadata.Edm.EntityType
The principal end entity type.
- principalKeyProperty
-
Type:
System.Data.Entity.Core.Metadata.Edm.EdmProperty
A key property on the principal end that is a candidate target for the foreign key.
Return Value
Type: System.Booleantrue if dependentProperty should be a part of the foreign key; otherwise, false.