IReadOnlyEntityType.FindIndex 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
FindIndex(IReadOnlyProperty) |
获取在给定属性上定义的未命名索引。 |
FindIndex(IReadOnlyList<IReadOnlyProperty>) |
获取在给定属性上定义的未命名索引。 |
FindIndex(String) |
获取具有给定名称的索引。 |
FindIndex(IReadOnlyProperty)
获取在给定属性上定义的未命名索引。 null
如果未定义此类索引,则返回 。
public virtual Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex? FindIndex (Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property);
abstract member FindIndex : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex
override this.FindIndex : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex
Public Overridable Function FindIndex (property As IReadOnlyProperty) As IReadOnlyIndex
参数
- property
- IReadOnlyProperty
要查找索引的属性。
返回
索引,如果未找到索引,则为 。null
注解
即使属性列表匹配,也不会返回命名索引。
适用于
FindIndex(IReadOnlyList<IReadOnlyProperty>)
获取在给定属性上定义的未命名索引。 null
如果未定义此类索引,则返回 。
public Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex? FindIndex (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> properties);
abstract member FindIndex : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex
Public Function FindIndex (properties As IReadOnlyList(Of IReadOnlyProperty)) As IReadOnlyIndex
参数
- properties
- IReadOnlyList<IReadOnlyProperty>
要查找索引的属性。
返回
索引,如果未找到索引,则为 。null
注解
即使属性列表匹配,也不会返回命名索引。
适用于
FindIndex(String)
获取具有给定名称的索引。 null
如果不存在此类索引,则返回 。
public Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex? FindIndex (string name);
abstract member FindIndex : string -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyIndex
Public Function FindIndex (name As String) As IReadOnlyIndex
参数
- name
- String
要查找的索引的名称。
返回
索引,如果未找到索引,则为 。null
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈