SqlServerIndexExtensions.SetDataCompression Method

Definition

Overloads

SetDataCompression(IMutableIndex, Nullable<DataCompressionType>)

Sets a value indicating the data compression the index uses.

SetDataCompression(IConventionIndex, Nullable<DataCompressionType>, Boolean)

Sets a value indicating the data compression the index uses.

SetDataCompression(IMutableIndex, Nullable<DataCompressionType>)

Sets a value indicating the data compression the index uses.

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

Parameters

index
IMutableIndex

The index.

dataCompression
Nullable<DataCompressionType>

The value to set.

Applies to

SetDataCompression(IConventionIndex, Nullable<DataCompressionType>, Boolean)

Sets a value indicating the data compression the index uses.

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

Parameters

index
IConventionIndex

The index.

dataCompression
Nullable<DataCompressionType>

The value to set.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The configured value.

Applies to