SqlServerIndexBuilderExtensions.IsClustered 方法

定义

重载

IsClustered(IndexBuilder, Boolean)

配置在面向SQL Server时是否聚集索引。

IsClustered(IConventionIndexBuilder, Nullable<Boolean>, Boolean)

配置在面向SQL Server时是否聚集索引。

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

配置在面向SQL Server时是否聚集索引。

IsClustered(IndexBuilder, Boolean)

Source:
SqlServerIndexBuilderExtensions.cs
Source:
SqlServerIndexBuilderExtensions.cs
Source:
SqlServerIndexBuilderExtensions.cs
Source:
SqlServerIndexBuilderExtensions.cs
Source:
SqlServerIndexBuilderExtensions.cs
Source:
SqlServerIndexBuilderExtensions.cs
Source:
SqlServerIndexBuilderExtensions.cs

配置在面向SQL Server时是否聚集索引。

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

参数

indexBuilder
IndexBuilder

要配置的索引的生成器。

clustered
Boolean

一个 值,该值指示索引是否为聚集索引。

返回

用于进一步配置索引的生成器。

注解

有关详细信息和示例,请参阅为实体类型和关系建模和使用 EF Core 访问SQL Server和Azure SQL数据库

适用于

IsClustered(IConventionIndexBuilder, Nullable<Boolean>, Boolean)

Source:
SqlServerIndexBuilderExtensions.cs
Source:
SqlServerIndexBuilderExtensions.cs
Source:
SqlServerIndexBuilderExtensions.cs
Source:
SqlServerIndexBuilderExtensions.cs
Source:
SqlServerIndexBuilderExtensions.cs
Source:
SqlServerIndexBuilderExtensions.cs
Source:
SqlServerIndexBuilderExtensions.cs

配置在面向SQL Server时是否聚集索引。

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

参数

indexBuilder
IConventionIndexBuilder

要配置的索引的生成器。

clustered
Nullable<Boolean>

一个 值,该值指示索引是否为聚集索引。

fromDataAnnotation
Boolean

指示配置是否是使用数据注释指定的。

返回

如果应用了配置,则为同一生成器实例, null 否则为 。

注解

有关详细信息和示例,请参阅为实体类型和关系建模和使用 EF Core 访问SQL Server和Azure SQL数据库

适用于

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

Source:
SqlServerIndexBuilderExtensions.cs
Source:
SqlServerIndexBuilderExtensions.cs
Source:
SqlServerIndexBuilderExtensions.cs
Source:
SqlServerIndexBuilderExtensions.cs
Source:
SqlServerIndexBuilderExtensions.cs
Source:
SqlServerIndexBuilderExtensions.cs
Source:
SqlServerIndexBuilderExtensions.cs

配置在面向SQL Server时是否聚集索引。

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

类型参数

TEntity

参数

indexBuilder
IndexBuilder<TEntity>

要配置的索引的生成器。

clustered
Boolean

一个 值,该值指示索引是否为聚集索引。

返回

IndexBuilder<TEntity>

用于进一步配置索引的生成器。

注解

有关详细信息和示例,请参阅为实体类型和关系建模和使用 EF Core 访问SQL Server和Azure SQL数据库

适用于