IConventionEntityType.RemoveIndex 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
RemoveIndex(IConventionIndex) |
从此实体类型中删除索引。 |
RemoveIndex(IReadOnlyIndex) |
从此实体类型中删除索引。 |
RemoveIndex(IReadOnlyList<IReadOnlyProperty>) |
从此实体类型中删除索引。 |
RemoveIndex(IConventionIndex)
从此实体类型中删除索引。
public void RemoveIndex (Microsoft.EntityFrameworkCore.Metadata.IConventionIndex index);
public Microsoft.EntityFrameworkCore.Metadata.IConventionIndex RemoveIndex (Microsoft.EntityFrameworkCore.Metadata.IConventionIndex index);
abstract member RemoveIndex : Microsoft.EntityFrameworkCore.Metadata.IConventionIndex -> unit
abstract member RemoveIndex : Microsoft.EntityFrameworkCore.Metadata.IConventionIndex -> Microsoft.EntityFrameworkCore.Metadata.IConventionIndex
Public Sub RemoveIndex (index As IConventionIndex)
Public Function RemoveIndex (index As IConventionIndex) As IConventionIndex
参数
- index
- IConventionIndex
要删除的索引。
返回
已删除的索引。
适用于
RemoveIndex(IReadOnlyIndex)
从此实体类型中删除索引。
public Microsoft.EntityFrameworkCore.Metadata.IConventionIndex? RemoveIndex (Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex index);
abstract member RemoveIndex : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex -> Microsoft.EntityFrameworkCore.Metadata.IConventionIndex
Public Function RemoveIndex (index As IReadOnlyIndex) As IConventionIndex
参数
- index
- IReadOnlyIndex
要删除的索引。
返回
删除的索引; null
如果未找到索引,则为 。
适用于
RemoveIndex(IReadOnlyList<IReadOnlyProperty>)
从此实体类型中删除索引。
public Microsoft.EntityFrameworkCore.Metadata.IConventionIndex? RemoveIndex (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> properties);
abstract member RemoveIndex : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> -> Microsoft.EntityFrameworkCore.Metadata.IConventionIndex
Public Function RemoveIndex (properties As IReadOnlyList(Of IReadOnlyProperty)) As IConventionIndex
参数
- properties
- IReadOnlyList<IReadOnlyProperty>
构成索引的属性。
返回
已删除的索引。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈