SqlServerIndexBuilderExtensions.ForSqlServerIsClustered 方法

定义

重载

ForSqlServerIsClustered(IndexBuilder, Boolean)
已过时.

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

ForSqlServerIsClustered(IConventionIndexBuilder, Nullable<Boolean>, Boolean)
已过时.

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

ForSqlServerIsClustered<TEntity>(IndexBuilder<TEntity>, Boolean)
已过时.

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

ForSqlServerIsClustered(IndexBuilder, Boolean)

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

注意

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)

Source:
SqlServerIndexBuilderExtensions.cs
Source:
SqlServerIndexBuilderExtensions.cs

注意

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)

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

注意

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>

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

属性

适用于