Delen via


OwnedNavigationBuilder.HasIndex Method

Definition

Overloads

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

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

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