SqlServerIndexBuilderExtensions.HasFillFactor 方法

定義

多載

HasFillFactor(IConventionIndexBuilder, Nullable<Int32>, Boolean)

設定以SQL Server為目標時,是否使用填滿因數選項建立索引。

HasFillFactor(IndexBuilder, Int32)

設定以SQL Server為目標時,是否使用填滿因數選項建立索引。

HasFillFactor<TEntity>(IndexBuilder<TEntity>, Int32)

設定以SQL Server為目標時,是否使用填滿因數選項建立索引。

HasFillFactor(IConventionIndexBuilder, Nullable<Int32>, Boolean)

設定以SQL Server為目標時,是否使用填滿因數選項建立索引。

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

參數

indexBuilder
IConventionIndexBuilder

要設定之索引的產生器。

fillFactor
Nullable<Int32>

值,指出是否使用填滿因數選項建立索引。

fromDataAnnotation
Boolean

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

傳回

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

備註

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

適用於

HasFillFactor(IndexBuilder, Int32)

設定以SQL Server為目標時,是否使用填滿因數選項建立索引。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder HasFillFactor (this Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder indexBuilder, int fillFactor);
static member HasFillFactor : Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder * int -> Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder
<Extension()>
Public Function HasFillFactor (indexBuilder As IndexBuilder, fillFactor As Integer) As IndexBuilder

參數

indexBuilder
IndexBuilder

要設定之索引的產生器。

fillFactor
Int32

值,指出是否使用填滿因數選項建立索引。

傳回

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

備註

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

適用於

HasFillFactor<TEntity>(IndexBuilder<TEntity>, Int32)

設定以SQL Server為目標時,是否使用填滿因數選項建立索引。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<TEntity> HasFillFactor<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<TEntity> indexBuilder, int fillFactor);
static member HasFillFactor : Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<'Entity> * int -> Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<'Entity>
<Extension()>
Public Function HasFillFactor(Of TEntity) (indexBuilder As IndexBuilder(Of TEntity), fillFactor As Integer) As IndexBuilder(Of TEntity)

類型參數

TEntity

參數

indexBuilder
IndexBuilder<TEntity>

要設定之索引的產生器。

fillFactor
Int32

值,指出是否使用填滿因數選項建立索引。

傳回

IndexBuilder<TEntity>

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

備註

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

適用於