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建立實體類型和關聯性的模型化,以及使用 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建立實體類型和關聯性的模型化,以及使用 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建立實體類型和關聯性的模型化,以及使用 EF Core 存取SQL Server和Azure SQL資料庫

適用於