次の方法で共有


PrimaryKeyNameForeignKeyDiscoveryConvention.MatchDependentKeyProperty メソッド

定義

overriden が を返す true 場合 dependentProperty は、 が外部キーの一部である必要があります。

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

パラメーター

associationType
AssociationType

構成されている関連付けの種類。

dependentAssociationEnd
AssociationEndMember

依存する終了。

dependentProperty
EdmProperty

依存する末尾の candidate プロパティ。

principalEntityType
EntityType

プリンシパルの終了エンティティ型。

principalKeyProperty
EdmProperty

外部キーの候補ターゲットであるプリンシパル側のキー プロパティ。

戻り値

dependentProperty が外部キーの一部である必要がある場合は true。それ以外の場合は false。

適用対象