共用方式為


KeyDiscoveryConvention 類別

定義

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

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

建構函式

KeyDiscoveryConvention()

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

方法

Apply(EntityType, DbModel)

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

MatchKeyProperty(EntityType, IEnumerable<EdmProperty>)

覆寫時,會傳回將屬於主鍵一部分的屬性子集。

適用於