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>)

重写时返回将成为主键一部分的属性子集。

适用于