SqlServerIndexBuilderExtensions.ForSqlServerIsCreatedOnline 方法

定义

重载

ForSqlServerIsCreatedOnline(IndexBuilder, Boolean)
已过时.

在面向SQL Server时,配置是否使用联机选项创建索引。

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

在面向SQL Server时,配置是否使用联机选项创建索引。

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

在面向SQL Server时,配置是否使用联机选项创建索引。

ForSqlServerIsCreatedOnline(IndexBuilder, Boolean)

Source:
SqlServerIndexBuilderExtensions.cs
Source:
SqlServerIndexBuilderExtensions.cs

注意

Use IsCreatedOnline

在面向SQL Server时,配置是否使用联机选项创建索引。

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

参数

indexBuilder
IndexBuilder

要配置的索引的生成器。

createdOnline
Boolean

一个 值,该值指示是否使用联机选项创建索引。

返回

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

属性

适用于

ForSqlServerIsCreatedOnline(IConventionIndexBuilder, Nullable<Boolean>, Boolean)

Source:
SqlServerIndexBuilderExtensions.cs
Source:
SqlServerIndexBuilderExtensions.cs

注意

Use IsCreatedOnline

在面向SQL Server时,配置是否使用联机选项创建索引。

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

参数

indexBuilder
IConventionIndexBuilder

要配置的索引的生成器。

createdOnline
Nullable<Boolean>

一个 值,该值指示是否使用联机选项创建索引。

fromDataAnnotation
Boolean

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

返回

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

属性

适用于

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

Source:
SqlServerIndexBuilderExtensions.cs
Source:
SqlServerIndexBuilderExtensions.cs

注意

Use IsCreatedOnline

在面向SQL Server时,配置是否使用联机选项创建索引。

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

类型参数

TEntity

参数

indexBuilder
IndexBuilder<TEntity>

要配置的索引的生成器。

createdOnline
Boolean

一个 值,该值指示是否使用联机选项创建索引。

返回

IndexBuilder<TEntity>

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

属性

适用于