TypeNameForeignKeyDiscoveryConvention.MatchDependentKeyProperty Method (AssociationType, AssociationEndMember, EdmProperty, EntityType, EdmProperty)

 

Determines whether the property of the dependent key matches the current key.

Namespace:   System.Data.Entity.ModelConfiguration.Conventions
Assembly:  EntityFramework (in EntityFramework.dll)

protected override 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.

dependentAssociationEnd
Type: System.Data.Entity.Core.Metadata.Edm.AssociationEndMember

The dependent association on end.

dependentProperty
Type: System.Data.Entity.Core.Metadata.Edm.EdmProperty

The dependent property.

principalEntityType
Type: System.Data.Entity.Core.Metadata.Edm.EntityType

The principal entity type.

principalKeyProperty
Type: System.Data.Entity.Core.Metadata.Edm.EdmProperty

The principal key property.

Return Value

Type: System.Boolean

true if the property of the dependent key matches the current key; otherwise, false.