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>

組成索引鍵的屬性。

傳回

已移除的索引鍵。

適用於