次の方法で共有


TypeNameForeignKeyDiscoveryConvention クラス

定義

名前がプリンシパル型名とプリンシパル型主キー プロパティ名の組み合わせである外部キー プロパティを検出する規約。

public class TypeNameForeignKeyDiscoveryConvention : System.Data.Entity.ModelConfiguration.Conventions.ForeignKeyDiscoveryConvention
type TypeNameForeignKeyDiscoveryConvention = class
    inherit ForeignKeyDiscoveryConvention
Public Class TypeNameForeignKeyDiscoveryConvention
Inherits ForeignKeyDiscoveryConvention
継承
TypeNameForeignKeyDiscoveryConvention
継承
TypeNameForeignKeyDiscoveryConvention

コンストラクター

TypeNameForeignKeyDiscoveryConvention()

名前がプリンシパル型名とプリンシパル型主キー プロパティ名の組み合わせである外部キー プロパティを検出する規約。

プロパティ

SupportsMultipleAssociations

規則で、複数の true 関連付けが定義されているエンティティ型のペアがサポートされている場合は を返します。

(継承元 ForeignKeyDiscoveryConvention)

メソッド

Apply(AssociationType, DbModel)

モデル内の項目にこの規則を適用します。

(継承元 ForeignKeyDiscoveryConvention)
MatchDependentKeyProperty(AssociationType, AssociationEndMember, EdmProperty, EntityType, EdmProperty)

をオーバーライドすると、 true が外部キーの一部である必要がある場合 dependentProperty に が返されます。

MatchDependentKeyProperty(AssociationType, AssociationEndMember, EdmProperty, EntityType, EdmProperty)

をオーバーライドすると、 true が外部キーの一部である必要がある場合 dependentProperty に が返されます。

(継承元 ForeignKeyDiscoveryConvention)

適用対象