Share via


SqlServerIndexBuilderExtensions.CanSetSortInTempDb Method

Definition

Returns a value indicating whether the index can be configured with sort in tempdb option when targeting SQL Server.

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

Parameters

indexBuilder
IConventionIndexBuilder

The builder for the index being configured.

sortInTempDb
Nullable<Boolean>

A value indicating whether the index is created with sort in tempdb option.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The same builder instance if the configuration was applied, null otherwise.

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