Udostępnij za pośrednictwem


SqlServerKeyBuilderExtensions.HasFillFactor Method

Definition

Overloads

HasFillFactor(KeyBuilder, Int32)

Configures whether the key is created with fill factor option when targeting SQL Server.

HasFillFactor(IConventionKeyBuilder, Nullable<Int32>, Boolean)

Configures whether the key is created with fill factor option when targeting SQL Server.

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

Configures whether the key is created with fill factor option when targeting SQL Server.

HasFillFactor(KeyBuilder, Int32)

Source:
SqlServerKeyBuilderExtensions.cs

Configures whether the key is created with fill factor option when targeting SQL Server.

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

Parameters

keyBuilder
KeyBuilder

The builder for the key being configured.

fillFactor
Int32

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

Returns

A builder to further configure the key.

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

HasFillFactor(IConventionKeyBuilder, Nullable<Int32>, Boolean)

Source:
SqlServerKeyBuilderExtensions.cs

Configures whether the key is created with fill factor option when targeting SQL Server.

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

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

The same builder instance if the configuration was applied, null otherwise.

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

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

Source:
SqlServerKeyBuilderExtensions.cs

Configures whether the key is created with fill factor option when targeting SQL Server.

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

Type Parameters

TEntity

Parameters

keyBuilder
KeyBuilder<TEntity>

The builder for the key being configured.

fillFactor
Int32

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

Returns

KeyBuilder<TEntity>

A builder to further configure the key.

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