CosmosKeyDiscoveryConvention.ProcessKeyProperties 方法

定义

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

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

参数

keyProperties
IList<IConventionProperty>

将用于配置密钥的属性。

entityType
IConventionEntityType

要配置的实体类型。

适用于