SqlServerKeyBuilderExtensions.ForSqlServerIsClustered 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ForSqlServerIsClustered(KeyBuilder, Boolean) |
已淘汰.
設定當目標設為SQL Server時,金鑰是否為叢集。 |
ForSqlServerIsClustered(IConventionKeyBuilder, Nullable<Boolean>, Boolean) |
已淘汰.
設定當目標設為SQL Server時,金鑰是否為叢集。 |
ForSqlServerIsClustered(KeyBuilder, Boolean)
警告
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)
警告
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
正在設定之索引鍵的產生器。
- fromDataAnnotation
- Boolean
指出是否使用資料批註來指定組態。
傳回
如果套用組態,則為相同的產生器實例, null
否則為 。
- 屬性