语言

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数据库。

适用于