共用方式為


SqlServerKeyBuilderExtensions.ForSqlServerIsClustered 方法

定義

多載

ForSqlServerIsClustered(KeyBuilder, Boolean)
已淘汰.

設定當目標設為SQL Server時,金鑰是否為叢集。

ForSqlServerIsClustered(IConventionKeyBuilder, Nullable<Boolean>, Boolean)
已淘汰.

設定當目標設為SQL Server時,金鑰是否為叢集。

ForSqlServerIsClustered(KeyBuilder, Boolean)

來源:
SqlServerKeyBuilderExtensions.cs
來源:
SqlServerKeyBuilderExtensions.cs
來源:
SqlServerKeyBuilderExtensions.cs
來源:
SqlServerKeyBuilderExtensions.cs

警告

Use IsClustered

設定當目標設為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

參數

keyBuilder
KeyBuilder

正在設定之索引鍵的產生器。

clustered
Boolean

值,指出索引鍵是否已叢集化。

傳回

相同的產生器實例,以便鏈結多個呼叫。

屬性

適用於

ForSqlServerIsClustered(IConventionKeyBuilder, Nullable<Boolean>, Boolean)

來源:
SqlServerKeyBuilderExtensions.cs
來源:
SqlServerKeyBuilderExtensions.cs

警告

Use IsClustered

設定當目標設為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

參數

keyBuilder
IConventionKeyBuilder

正在設定之索引鍵的產生器。

clustered
Nullable<Boolean>

值,指出索引鍵是否已叢集化。

fromDataAnnotation
Boolean

指出是否使用資料批註來指定組態。

傳回

如果套用組態,則為相同的產生器實例, null 否則為 。

屬性

適用於