SqlServerIndexExtensions.SetDataCompression 方法

定義

多載

SetDataCompression(IMutableIndex, Nullable<DataCompressionType>)

設定值,指出索引所使用的資料壓縮。

SetDataCompression(IConventionIndex, Nullable<DataCompressionType>, Boolean)

設定值,指出索引所使用的資料壓縮。

SetDataCompression(IMutableIndex, Nullable<DataCompressionType>)

設定值,指出索引所使用的資料壓縮。

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

參數

index
IMutableIndex

索引。

dataCompression
Nullable<DataCompressionType>

要設定的值。

適用於

SetDataCompression(IConventionIndex, Nullable<DataCompressionType>, Boolean)

設定值,指出索引所使用的資料壓縮。

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)

參數

index
IConventionIndex

索引。

dataCompression
Nullable<DataCompressionType>

要設定的值。

fromDataAnnotation
Boolean

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

傳回

已設定的值。

適用於