ReferenceOwnershipBuilder.HasIndex(String[]) Method
Definition
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.
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
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.
Entity Framework