KeyDiscoveryConvention 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
发现主键属性的约定的基类。
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>) |
重写时返回将成为主键一部分的属性子集。 |