MutableEntityTypeExtensions.RemoveIndex 方法

定义

从此实体类型中删除索引。

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

参数

entityType
IMutableEntityType

实体类型。

properties
IReadOnlyList<IMutableProperty>

构成索引的属性。

返回

已删除的索引。

适用于