SqlServerIndexBuilderExtensions.SortInTempDb 方法

定義

多載

SortInTempDb(IndexBuilder, Boolean)

設定目標為 SQL Server 時,是否使用 tempdb 選項中的排序來建立索引。

SortInTempDb(IConventionIndexBuilder, Nullable<Boolean>, Boolean)

設定目標為 SQL Server 時,是否使用 tempdb 選項中的排序來建立索引。

SortInTempDb<TEntity>(IndexBuilder<TEntity>, Boolean)

設定目標為 SQL Server 時,是否使用 tempdb 選項中的排序來建立索引。

SortInTempDb(IndexBuilder, Boolean)

設定目標為 SQL Server 時,是否使用 tempdb 選項中的排序來建立索引。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder SortInTempDb (this Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder indexBuilder, bool sortInTempDb = true);
static member SortInTempDb : Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder
<Extension()>
Public Function SortInTempDb (indexBuilder As IndexBuilder, Optional sortInTempDb As Boolean = true) As IndexBuilder

參數

indexBuilder
IndexBuilder

要設定之索引的產生器。

sortInTempDb
Boolean

值,指出是否使用 tempdb 選項中的排序建立索引。

傳回

進一步設定索引的建立器。

備註

如需詳細資訊和範例,請參閱使用 EF Core建立實體類型和關聯性的模型化,以及存取SQL Server和Azure SQL資料庫

適用於

SortInTempDb(IConventionIndexBuilder, Nullable<Boolean>, Boolean)

設定目標為 SQL Server 時,是否使用 tempdb 選項中的排序來建立索引。

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

參數

indexBuilder
IConventionIndexBuilder

要設定之索引的產生器。

sortInTempDb
Nullable<Boolean>

值,指出是否使用 tempdb 選項中的排序建立索引。

fromDataAnnotation
Boolean

指出是否使用資料批註來指定組態。

傳回

如果套用組態,則為相同的產生器實例, null 否則為 。

備註

如需詳細資訊和範例,請參閱使用 EF Core建立實體類型和關聯性的模型化,以及存取SQL Server和Azure SQL資料庫

適用於

SortInTempDb<TEntity>(IndexBuilder<TEntity>, Boolean)

設定目標為 SQL Server 時,是否使用 tempdb 選項中的排序來建立索引。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<TEntity> SortInTempDb<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<TEntity> indexBuilder, bool sortInTempDb = true);
static member SortInTempDb : Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<'Entity> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<'Entity>
<Extension()>
Public Function SortInTempDb(Of TEntity) (indexBuilder As IndexBuilder(Of TEntity), Optional sortInTempDb As Boolean = true) As IndexBuilder(Of TEntity)

類型參數

TEntity

參數

indexBuilder
IndexBuilder<TEntity>

要設定之索引的產生器。

sortInTempDb
Boolean

值,指出是否使用 tempdb 選項中的排序建立索引。

傳回

IndexBuilder<TEntity>

進一步設定索引的建立器。

備註

如需詳細資訊和範例,請參閱使用 EF Core建立實體類型和關聯性的模型化,以及存取SQL Server和Azure SQL資料庫

適用於