SqlServerKeyBuilderExtensions.ForSqlServerIsClustered Method

Definition

Overloads

ForSqlServerIsClustered(KeyBuilder, Boolean)
Obsolete.

Configures whether the key is clustered when targeting SQL Server.

ForSqlServerIsClustered(IConventionKeyBuilder, Nullable<Boolean>, Boolean)
Obsolete.

Configures whether the key is clustered when targeting SQL Server.

ForSqlServerIsClustered(KeyBuilder, Boolean)

Caution

Use IsClustered

Configures whether the key is clustered when targeting SQL Server.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.KeyBuilder ForSqlServerIsClustered (this Microsoft.EntityFrameworkCore.Metadata.Builders.KeyBuilder keyBuilder, bool clustered = true);
[System.Obsolete("Use IsClustered")]
public static Microsoft.EntityFrameworkCore.Metadata.Builders.KeyBuilder ForSqlServerIsClustered (this Microsoft.EntityFrameworkCore.Metadata.Builders.KeyBuilder keyBuilder, bool clustered = true);
static member ForSqlServerIsClustered : Microsoft.EntityFrameworkCore.Metadata.Builders.KeyBuilder * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.KeyBuilder
[<System.Obsolete("Use IsClustered")>]
static member ForSqlServerIsClustered : Microsoft.EntityFrameworkCore.Metadata.Builders.KeyBuilder * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.KeyBuilder
<Extension()>
Public Function ForSqlServerIsClustered (keyBuilder As KeyBuilder, Optional clustered As Boolean = true) As KeyBuilder

Parameters

keyBuilder
KeyBuilder

The builder for the key being configured.

clustered
Boolean

A value indicating whether the key is clustered.

Returns

The same builder instance so that multiple calls can be chained.

Attributes

Applies to

ForSqlServerIsClustered(IConventionKeyBuilder, Nullable<Boolean>, Boolean)

Caution

Use IsClustered

Configures whether the key is clustered when targeting SQL Server.

[System.Obsolete("Use IsClustered")]
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionKeyBuilder ForSqlServerIsClustered (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionKeyBuilder keyBuilder, bool? clustered, bool fromDataAnnotation = false);
[<System.Obsolete("Use IsClustered")>]
static member ForSqlServerIsClustered : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionKeyBuilder * Nullable<bool> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionKeyBuilder
<Extension()>
Public Function ForSqlServerIsClustered (keyBuilder As IConventionKeyBuilder, clustered As Nullable(Of Boolean), Optional fromDataAnnotation As Boolean = false) As IConventionKeyBuilder

Parameters

keyBuilder
IConventionKeyBuilder

The builder for the key being configured.

clustered
Nullable<Boolean>

A value indicating whether the key is clustered.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

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

Attributes

Applies to