共用方式為


SqlServerIndexBuilderExtensions.ForSqlServerIsClustered 方法

定義

多載

ForSqlServerIsClustered(IndexBuilder, Boolean)
已淘汰.

設定當目標設為 SQL Server 時,索引是否為叢集。

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

設定當目標設為 SQL Server 時,索引是否為叢集。

ForSqlServerIsClustered<TEntity>(IndexBuilder<TEntity>, Boolean)
已淘汰.

設定當目標設為 SQL Server 時,索引是否為叢集。

ForSqlServerIsClustered(IndexBuilder, Boolean)

警告

Use IsClustered

設定當目標設為 SQL Server 時,索引是否為叢集。

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

參數

indexBuilder
IndexBuilder

要設定之索引的產生器。

clustered
Boolean

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

傳回

進一步設定索引的建立器。

屬性

適用於

ForSqlServerIsClustered(IConventionIndexBuilder, Nullable<Boolean>, Boolean)

警告

Use IsClustered

設定當目標設為 SQL Server 時,索引是否為叢集。

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

參數

indexBuilder
IConventionIndexBuilder

要設定之索引的產生器。

clustered
Nullable<Boolean>

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

fromDataAnnotation
Boolean

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

傳回

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

屬性

適用於

ForSqlServerIsClustered<TEntity>(IndexBuilder<TEntity>, Boolean)

警告

Use IsClustered

設定當目標設為 SQL Server 時,索引是否為叢集。

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

類型參數

TEntity

參數

indexBuilder
IndexBuilder<TEntity>

要設定之索引的產生器。

clustered
Boolean

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

傳回

IndexBuilder<TEntity>

進一步設定索引的建立器。

屬性

適用於