MutableEntityTypeExtensions.RemoveKey 方法

定义

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

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

参数

entityType
IMutableEntityType

实体类型。

properties
IReadOnlyList<IMutableProperty>

构成密钥的属性。

返回

已删除的键。

适用于