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