KeyDiscoveryConvention.ProcessKeyProperties 方法

定义

添加或删除要用于主键的属性。

protected virtual void ProcessKeyProperties (System.Collections.Generic.IList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> keyProperties, Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType);
abstract member ProcessKeyProperties : System.Collections.Generic.IList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> * Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType -> unit
override this.ProcessKeyProperties : System.Collections.Generic.IList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> * Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType -> unit
Protected Overridable Sub ProcessKeyProperties (keyProperties As IList(Of IConventionProperty), entityType As IConventionEntityType)

参数

keyProperties
IList<IConventionProperty>

将用于配置密钥的属性。

entityType
IConventionEntityType

要配置的实体类型。

适用于