Share via


SqlServerIndexBuilderExtensions.CanSetIsClustered Method

Definition

Returns a value indicating whether the index can be configured as clustered.

public static bool CanSetIsClustered (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder indexBuilder, bool? clustered, bool fromDataAnnotation = false);
static member CanSetIsClustered : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder * Nullable<bool> * bool -> bool
<Extension()>
Public Function CanSetIsClustered (indexBuilder As IConventionIndexBuilder, clustered As Nullable(Of Boolean), Optional fromDataAnnotation As Boolean = false) As Boolean

Parameters

indexBuilder
IConventionIndexBuilder

The builder for the index being configured.

clustered
Nullable<Boolean>

A value indicating whether the index is clustered.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

true if the index can be configured as clustered.

Remarks

See Modeling entity types and relationships, and Accessing SQL Server and Azure SQL databases with EF Core for more information and examples.

Applies to