Langue

ForeignKeyDiscoveryConvention.MatchDependentKeyProperty Méthode

Définition

En cas de retour true substitué, s’il dependentProperty doit faire partie de la clé étrangère.

protected abstract 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);
abstract member 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

Paramètres

associationType
AssociationType

Type d’association en cours de configuration.

dependentAssociationEnd
AssociationEndMember

Fin dépendante.

dependentProperty
EdmProperty

Propriété candidate à la fin dépendante.

principalEntityType
EntityType

Type d’entité de fin du principal.

principalKeyProperty
EdmProperty

Propriété clé à la fin du principal qui est une cible candidate pour la clé étrangère.

Retours

true si dependentProperty doit faire partie de la clé étrangère ; sinon, false.

S’applique à