Share via


SqlServerIndexBuilderExtensions.IsCreatedOnline 方法

定义

重载

IsCreatedOnline(IndexBuilder, Boolean)

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

IsCreatedOnline(IConventionIndexBuilder, Nullable<Boolean>, Boolean)

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

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

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

IsCreatedOnline(IndexBuilder, Boolean)

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

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

参数

indexBuilder
IndexBuilder

要配置的索引的生成器。

createdOnline
Boolean

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

返回

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

注解

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

适用于

IsCreatedOnline(IConventionIndexBuilder, Nullable<Boolean>, Boolean)

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

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

参数

indexBuilder
IConventionIndexBuilder

要配置的索引的生成器。

createdOnline
Nullable<Boolean>

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

fromDataAnnotation
Boolean

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

返回

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

注解

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

适用于

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

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

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

类型参数

TEntity

参数

indexBuilder
IndexBuilder<TEntity>

要配置的索引的生成器。

createdOnline
Boolean

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

返回

IndexBuilder<TEntity>

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

注解

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

适用于