Share via


PrimaryKeyNameForeignKeyDiscoveryConvention.MatchDependentKeyProperty Method

Definition

When overriden returns true if dependentProperty should be part of the foreign key.

protected override bool MatchDependentKeyProperty (System.Data.Entity.Core.Metadata.Edm.AssociationType associationType, System.Data.Entity.Core.Metadata.Edm.AssociationEndMember dependentAssociationEnd, System.Data.Entity.Core.Metadata.Edm.EdmProperty dependentProperty, System.Data.Entity.Core.Metadata.Edm.EntityType principalEntityType, System.Data.Entity.Core.Metadata.Edm.EdmProperty principalKeyProperty);
override this.MatchDependentKeyProperty : System.Data.Entity.Core.Metadata.Edm.AssociationType * System.Data.Entity.Core.Metadata.Edm.AssociationEndMember * System.Data.Entity.Core.Metadata.Edm.EdmProperty * System.Data.Entity.Core.Metadata.Edm.EntityType * System.Data.Entity.Core.Metadata.Edm.EdmProperty -> bool

Parameters

associationType
AssociationType

The association type being configured.

dependentAssociationEnd
AssociationEndMember

The dependent end.

dependentProperty
EdmProperty

The candidate property on the dependent end.

principalEntityType
EntityType

The principal end entity type.

principalKeyProperty
EdmProperty

A key property on the principal end that is a candidate target for the foreign key.

Returns

true if dependentProperty should be a part of the foreign key; otherwise, false.

Applies to