ConventionEntityTypeExtensions.RemoveKey 方法

定义

从此实体类型中删除主键或备用键。

public static Microsoft.EntityFrameworkCore.Metadata.IConventionKey RemoveKey (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> properties);
static member RemoveKey : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> -> Microsoft.EntityFrameworkCore.Metadata.IConventionKey
<Extension()>
Public Function RemoveKey (entityType As IConventionEntityType, properties As IReadOnlyList(Of IConventionProperty)) As IConventionKey

参数

entityType
IConventionEntityType

实体类型。

properties
IReadOnlyList<IConventionProperty>

构成键的属性。

返回

已删除的键。

适用于