OwnedNavigationBuilder.HasIndex(String[]) Method

Definition

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