ConventionEntityTypeExtensions.RemoveIndex 方法

定義

從這個實體類型移除索引。

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

參數

entityType
IConventionEntityType

實體類型。

properties
IReadOnlyList<IConventionProperty>

組成索引的屬性。

傳回

已移除的索引。

適用於