SqlServerPropertyExtensions.SetIsSparse 方法

定義

多載

SetIsSparse(IMutableProperty, Nullable<Boolean>)

設定值,指出屬性的資料行是否為疏鬆。

SetIsSparse(IConventionProperty, Nullable<Boolean>, Boolean)

設定值,指出屬性的資料行是否為疏鬆。

SetIsSparse(IMutableProperty, Nullable<Boolean>)

設定值,指出屬性的資料行是否為疏鬆。

public static void SetIsSparse (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, bool? sparse);
static member SetIsSparse : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * Nullable<bool> -> unit
<Extension()>
Public Sub SetIsSparse (property As IMutableProperty, sparse As Nullable(Of Boolean))

參數

property
IMutableProperty

屬性。

sparse
Nullable<Boolean>

要設定的值。

適用於

SetIsSparse(IConventionProperty, Nullable<Boolean>, Boolean)

設定值,指出屬性的資料行是否為疏鬆。

public static bool? SetIsSparse (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, bool? sparse, bool fromDataAnnotation = false);
static member SetIsSparse : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * Nullable<bool> * bool -> Nullable<bool>
<Extension()>
Public Function SetIsSparse (property As IConventionProperty, sparse As Nullable(Of Boolean), Optional fromDataAnnotation As Boolean = false) As Nullable(Of Boolean)

參數

property
IConventionProperty

屬性。

sparse
Nullable<Boolean>

要設定的值。

fromDataAnnotation
Boolean

指出是否使用資料批註來指定組態。

傳回

已設定的值。

適用於