SqlServerIndexBuilderExtensions.CanSetFillFactor 方法

定義

傳回值,指出以SQL Server為目標時,是否可以使用填滿因數選項來設定索引。

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

參數

indexBuilder
IConventionIndexBuilder

要設定之索引的產生器。

fillFactor
Nullable<Int32>

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

fromDataAnnotation
Boolean

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

傳回

true如果索引可以在目標SQL Server時設定填滿因數選項,則為 。

備註

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

適用於