SqlServerKeyBuilderExtensions.IsClustered 方法

定义

重载

IsClustered(KeyBuilder, Boolean)

配置在面向SQL Server时密钥是否聚集。

IsClustered(IConventionKeyBuilder, Nullable<Boolean>, Boolean)

配置在面向SQL Server时密钥是否聚集。

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

配置在面向SQL Server时密钥是否聚集。

IsClustered(KeyBuilder, Boolean)

Source:
SqlServerKeyBuilderExtensions.cs
Source:
SqlServerKeyBuilderExtensions.cs
Source:
SqlServerKeyBuilderExtensions.cs
Source:
SqlServerKeyBuilderExtensions.cs
Source:
SqlServerKeyBuilderExtensions.cs
Source:
SqlServerKeyBuilderExtensions.cs
Source:
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 访问SQL Server和Azure SQL数据库

适用于

IsClustered(IConventionKeyBuilder, Nullable<Boolean>, Boolean)

Source:
SqlServerKeyBuilderExtensions.cs
Source:
SqlServerKeyBuilderExtensions.cs
Source:
SqlServerKeyBuilderExtensions.cs
Source:
SqlServerKeyBuilderExtensions.cs
Source:
SqlServerKeyBuilderExtensions.cs
Source:
SqlServerKeyBuilderExtensions.cs
Source:
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 访问SQL Server和Azure SQL数据库

适用于

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

Source:
SqlServerKeyBuilderExtensions.cs
Source:
SqlServerKeyBuilderExtensions.cs
Source:
SqlServerKeyBuilderExtensions.cs
Source:
SqlServerKeyBuilderExtensions.cs
Source:
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 访问SQL Server和Azure SQL数据库

适用于