StoreGeneratedIdentityKeyConvention 类

定义

用于将整数主键配置为标识的约定。

public class StoreGeneratedIdentityKeyConvention : System.Data.Entity.ModelConfiguration.Conventions.IConceptualModelConvention<System.Data.Entity.Core.Metadata.Edm.EntityType>
type StoreGeneratedIdentityKeyConvention = class
    interface IConceptualModelConvention<EntityType>
    interface IConvention
Public Class StoreGeneratedIdentityKeyConvention
Implements IConceptualModelConvention(Of EntityType)
继承
StoreGeneratedIdentityKeyConvention
实现

构造函数

StoreGeneratedIdentityKeyConvention()

用于将整数主键配置为标识的约定。

方法

Apply(EntityType, DbModel)

将此约定应用于模型中的项。

适用于