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>

組成索引鍵的屬性。

傳回

已移除的索引鍵。

適用於