共用方式為


ForeignKeyDiscoveryConvention 類別

定義

探索外鍵屬性之慣例的基類。

public abstract class ForeignKeyDiscoveryConvention : System.Data.Entity.ModelConfiguration.Conventions.IConceptualModelConvention<System.Data.Entity.Core.Metadata.Edm.AssociationType>
type ForeignKeyDiscoveryConvention = class
    interface IConceptualModelConvention<AssociationType>
    interface IConvention
Public MustInherit Class ForeignKeyDiscoveryConvention
Implements IConceptualModelConvention(Of AssociationType)
繼承
ForeignKeyDiscoveryConvention
衍生
實作

建構函式

ForeignKeyDiscoveryConvention()

探索外鍵屬性之慣例的基類。

屬性

SupportsMultipleAssociations

true如果慣例支援在兩者之間定義多個關聯的實體類型組,則傳回 。

方法

Apply(AssociationType, DbModel)

將此慣例套用至模型中的專案。

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

如果 應該屬於外鍵,則覆寫時會傳回 truedependentProperty

適用於