語言

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 存取 SQL Server 與 Azure SQL 資料庫」。

適用於