OwnedNavigationBuilder.HasIndex 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| HasIndex(String[], String) |
使用指定属性和给定名称配置索引。 如果给定的属性列表和具有给定名称的现有索引,则会为配置返回现有索引。 |
| HasIndex(String[]) |
在指定属性上配置索引。 如果给定的属性集上存在现有索引,则会为配置返回现有索引。 |
HasIndex(String[], String)
- Source:
- OwnedNavigationBuilder.cs
- Source:
- OwnedNavigationBuilder.cs
- Source:
- OwnedNavigationBuilder.cs
使用指定属性和给定名称配置索引。 如果给定的属性列表和具有给定名称的现有索引,则会为配置返回现有索引。
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder HasIndex(string[] propertyNames, string name);
abstract member HasIndex : string[] * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder
override this.HasIndex : string[] * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder
Public Overridable Function HasIndex (propertyNames As String(), name As String) As IndexBuilder
参数
- propertyNames
- String[]
构成索引的属性的名称。
- name
- String
要分配给索引的名称。
返回
可用于配置索引的对象。
适用于
HasIndex(String[])
- Source:
- OwnedNavigationBuilder.cs
- Source:
- OwnedNavigationBuilder.cs
- Source:
- OwnedNavigationBuilder.cs
- Source:
- OwnedNavigationBuilder.cs
- Source:
- OwnedNavigationBuilder.cs
- Source:
- OwnedNavigationBuilder.cs
- Source:
- OwnedNavigationBuilder.cs
- Source:
- OwnedNavigationBuilder.cs
- Source:
- OwnedNavigationBuilder.cs
在指定属性上配置索引。 如果给定的属性集上存在现有索引,则会为配置返回现有索引。
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder HasIndex(params string[] propertyNames);
abstract member HasIndex : string[] -> Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder
override this.HasIndex : string[] -> Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder
Public Overridable Function HasIndex (ParamArray propertyNames As String()) As IndexBuilder
参数
- propertyNames
- String[]
构成索引的属性的名称。
返回
可用于配置索引的对象。