Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
OwnedNavigationBuilder.HasIndex Method
Definition
- Assembly:
- Microsoft.EntityFrameworkCore.dll
- Package:
- Microsoft.EntityFrameworkCore v10.0.0
- Package:
- Microsoft.EntityFrameworkCore v9.0.0
- Package:
- Microsoft.EntityFrameworkCore v3.0.0
- Package:
- Microsoft.EntityFrameworkCore v3.1.0
- Package:
- Microsoft.EntityFrameworkCore v5.0.0
- Package:
- Microsoft.EntityFrameworkCore v6.0.0
- Package:
- Microsoft.EntityFrameworkCore v7.0.0
- Package:
- Microsoft.EntityFrameworkCore v8.0.0
Important
Some information relates to prerelease product that may be substantially modified before itβs released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| HasIndex(String[], String) |
Configures an index on the specified properties and with the given name. If there is an existing index on the given list of properties and with the given name, then the existing index will be returned for configuration. |
| HasIndex(String[]) |
Configures an index on the specified properties. If there is an existing index on the given set of properties, then the existing index will be returned for configuration. |
HasIndex(String[], String)
- Source:
- OwnedNavigationBuilder.cs
- Source:
- OwnedNavigationBuilder.cs
Configures an index on the specified properties and with the given name. If there is an existing index on the given list of properties and with the given name, then the existing index will be returned for configuration.
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
Parameters
- propertyNames
- String[]
The names of the properties that make up the index.
- name
- String
The name to assign to the index.
Returns
An object that can be used to configure the index.
Applies to
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
Configures an index on the specified properties. If there is an existing index on the given set of properties, then the existing index will be returned for configuration.
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
Parameters
- propertyNames
- String[]
The names of the properties that make up the index.
Returns
An object that can be used to configure the index.
Applies to
Entity Framework
Feedback
Was this page helpful?
