SqlServerPropertyExtensions.SetIsSparse Method

Definition

Overloads

SetIsSparse(IMutableProperty, Nullable<Boolean>)

Sets a value indicating whether the property's column is sparse.

SetIsSparse(IConventionProperty, Nullable<Boolean>, Boolean)

Sets a value indicating whether the property's column is sparse.

SetIsSparse(IMutableProperty, Nullable<Boolean>)

Sets a value indicating whether the property's column is sparse.

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))

Parameters

property
IMutableProperty

The property.

sparse
Nullable<Boolean>

The value to set.

Applies to

SetIsSparse(IConventionProperty, Nullable<Boolean>, Boolean)

Sets a value indicating whether the property's column is sparse.

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)

Parameters

property
IConventionProperty

The property.

sparse
Nullable<Boolean>

The value to set.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The configured value.

Applies to