Condividi tramite


SqlServerKeyBuilderExtensions.CanSetFillFactor Method

Definition

Returns a value indicating whether the key can be configured with fill factor option when targeting SQL Server.

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

Parameters

keyBuilder
IConventionKeyBuilder

The builder for the key being configured.

fillFactor
Nullable<Int32>

A value indicating whether the key is created with fill factor option.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

true if the key can be configured with fill factor option when targeting SQL Server.

Remarks

See Modeling entity types and relationships, and Accessing SQL Server and Azure SQL databases with EF Core for more information and examples.

Applies to