SqlServerIndexExtensions.SetIsCreatedOnline 方法

定义

重载

SetIsCreatedOnline(IMutableIndex, Nullable<Boolean>)

设置一个值,该值指示索引是否处于联机状态。

SetIsCreatedOnline(IConventionIndex, Nullable<Boolean>, Boolean)

设置一个值,该值指示索引是否处于联机状态。

SetIsCreatedOnline(IMutableIndex, Nullable<Boolean>)

设置一个值,该值指示索引是否处于联机状态。

public static void SetIsCreatedOnline (this Microsoft.EntityFrameworkCore.Metadata.IMutableIndex index, bool? createdOnline);
static member SetIsCreatedOnline : Microsoft.EntityFrameworkCore.Metadata.IMutableIndex * Nullable<bool> -> unit
<Extension()>
Public Sub SetIsCreatedOnline (index As IMutableIndex, createdOnline As Nullable(Of Boolean))

参数

index
IMutableIndex

索引。

createdOnline
Nullable<Boolean>

要设置的值。

适用于

SetIsCreatedOnline(IConventionIndex, Nullable<Boolean>, Boolean)

设置一个值,该值指示索引是否处于联机状态。

public static void SetIsCreatedOnline (this Microsoft.EntityFrameworkCore.Metadata.IConventionIndex index, bool? createdOnline, bool fromDataAnnotation = false);
public static bool? SetIsCreatedOnline (this Microsoft.EntityFrameworkCore.Metadata.IConventionIndex index, bool? createdOnline, bool fromDataAnnotation = false);
static member SetIsCreatedOnline : Microsoft.EntityFrameworkCore.Metadata.IConventionIndex * Nullable<bool> * bool -> unit
static member SetIsCreatedOnline : Microsoft.EntityFrameworkCore.Metadata.IConventionIndex * Nullable<bool> * bool -> Nullable<bool>
<Extension()>
Public Sub SetIsCreatedOnline (index As IConventionIndex, createdOnline As Nullable(Of Boolean), Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetIsCreatedOnline (index As IConventionIndex, createdOnline As Nullable(Of Boolean), Optional fromDataAnnotation As Boolean = false) As Nullable(Of Boolean)

参数

index
IConventionIndex

索引。

createdOnline
Nullable<Boolean>

要设置的值。

fromDataAnnotation
Boolean

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

返回

配置的值。

适用于