語言

SqlServerIndexBuilderExtensions.SortInTempDb 方法

定義

多載

名稱 Description
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)

來源:
SqlServerIndexBuilderExtensions.cs
來源:
SqlServerIndexBuilderExtensions.cs
來源:
SqlServerIndexBuilderExtensions.cs
來源:
SqlServerIndexBuilderExtensions.cs

在 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)

來源:
SqlServerIndexBuilderExtensions.cs
來源:
SqlServerIndexBuilderExtensions.cs
來源:
SqlServerIndexBuilderExtensions.cs
來源:
SqlServerIndexBuilderExtensions.cs

在 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)

來源:
SqlServerIndexBuilderExtensions.cs
來源:
SqlServerIndexBuilderExtensions.cs
來源:
SqlServerIndexBuilderExtensions.cs
來源:
SqlServerIndexBuilderExtensions.cs

在 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 資料庫」。

適用於