共用方式為


SqlServerKeyBuilderExtensions.IsClustered 方法

定義

多載

IsClustered(KeyBuilder, Boolean)

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

IsClustered(IConventionKeyBuilder, Nullable<Boolean>, Boolean)

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

IsClustered<TEntity>(KeyBuilder<TEntity>, Boolean)

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

IsClustered(KeyBuilder, Boolean)

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

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

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

參數

keyBuilder
KeyBuilder

要設定之索引鍵的產生器。

clustered
Boolean

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

傳回

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

備註

如需詳細資訊和範例,請參閱使用 EF Core建立實體類型和關聯性的模型化,以及使用 EF Core 存取SQL Server和Azure SQL資料庫

適用於

IsClustered(IConventionKeyBuilder, Nullable<Boolean>, Boolean)

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

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

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

參數

keyBuilder
IConventionKeyBuilder

要設定之索引鍵的產生器。

clustered
Nullable<Boolean>

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

fromDataAnnotation
Boolean

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

傳回

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

備註

如需詳細資訊和範例,請參閱使用 EF Core建立實體類型和關聯性的模型化,以及使用 EF Core 存取SQL Server和Azure SQL資料庫

適用於

IsClustered<TEntity>(KeyBuilder<TEntity>, Boolean)

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

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

public static Microsoft.EntityFrameworkCore.Metadata.Builders.KeyBuilder<TEntity> IsClustered<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.KeyBuilder<TEntity> keyBuilder, bool clustered = true);
static member IsClustered : Microsoft.EntityFrameworkCore.Metadata.Builders.KeyBuilder<'Entity> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.KeyBuilder<'Entity>
<Extension()>
Public Function IsClustered(Of TEntity) (keyBuilder As KeyBuilder(Of TEntity), Optional clustered As Boolean = true) As KeyBuilder(Of TEntity)

類型參數

TEntity

參數

keyBuilder
KeyBuilder<TEntity>

要設定之索引鍵的產生器。

clustered
Boolean

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

傳回

KeyBuilder<TEntity>

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

備註

如需詳細資訊和範例,請參閱使用 EF Core建立實體類型和關聯性的模型化,以及使用 EF Core 存取SQL Server和Azure SQL資料庫

適用於