語言

SqlServerIndexBuilderExtensions.UseDataCompression 方法

定義

多載

名稱 Description
UseDataCompression(IConventionIndexBuilder, Nullable<DataCompressionType>, Boolean)

設定在針對 SQL Server 時,是否建立索引時使用資料壓縮選項。

UseDataCompression(IndexBuilder, DataCompressionType)

設定在針對 SQL Server 時,是否建立索引時使用資料壓縮選項。

UseDataCompression<TEntity>(IndexBuilder<TEntity>, DataCompressionType)

設定在針對 SQL Server 時,是否建立索引時使用資料壓縮選項。

UseDataCompression(IConventionIndexBuilder, Nullable<DataCompressionType>, Boolean)

來源:
SqlServerIndexBuilderExtensions.cs
來源:
SqlServerIndexBuilderExtensions.cs
來源:
SqlServerIndexBuilderExtensions.cs
來源:
SqlServerIndexBuilderExtensions.cs

設定在針對 SQL Server 時,是否建立索引時使用資料壓縮選項。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder? UseDataCompression(this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder indexBuilder, Microsoft.EntityFrameworkCore.DataCompressionType? dataCompressionType, bool fromDataAnnotation = false);
static member UseDataCompression : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder * Nullable<Microsoft.EntityFrameworkCore.DataCompressionType> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder
<Extension()>
Public Function UseDataCompression (indexBuilder As IConventionIndexBuilder, dataCompressionType As Nullable(Of DataCompressionType), Optional fromDataAnnotation As Boolean = false) As IConventionIndexBuilder

參數

indexBuilder
IConventionIndexBuilder

正在設定索引的建置者。

dataCompressionType
Nullable<DataCompressionType>

一個表示應使用資料壓縮選項的值。

fromDataAnnotation
Boolean

表示配置是否以資料註解方式指定。

傳回

如果設定是套用,則使用同一個建構者實例, null 否則。

備註

更多資訊與範例請參閱「建模實體類型與關係」,以及「使用 EF Core 存取 SQL Server 與 Azure SQL 資料庫」。

適用於

UseDataCompression(IndexBuilder, DataCompressionType)

來源:
SqlServerIndexBuilderExtensions.cs
來源:
SqlServerIndexBuilderExtensions.cs
來源:
SqlServerIndexBuilderExtensions.cs
來源:
SqlServerIndexBuilderExtensions.cs

設定在針對 SQL Server 時,是否建立索引時使用資料壓縮選項。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder UseDataCompression(this Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder indexBuilder, Microsoft.EntityFrameworkCore.DataCompressionType dataCompressionType);
static member UseDataCompression : Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder * Microsoft.EntityFrameworkCore.DataCompressionType -> Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder
<Extension()>
Public Function UseDataCompression (indexBuilder As IndexBuilder, dataCompressionType As DataCompressionType) As IndexBuilder

參數

indexBuilder
IndexBuilder

正在設定索引的建置者。

dataCompressionType
DataCompressionType

一個表示應使用資料壓縮選項的值。

傳回

一個建構器來進一步配置索引。

備註

更多資訊與範例請參閱「建模實體類型與關係」,以及「使用 EF Core 存取 SQL Server 與 Azure SQL 資料庫」。

適用於

UseDataCompression<TEntity>(IndexBuilder<TEntity>, DataCompressionType)

來源:
SqlServerIndexBuilderExtensions.cs
來源:
SqlServerIndexBuilderExtensions.cs
來源:
SqlServerIndexBuilderExtensions.cs
來源:
SqlServerIndexBuilderExtensions.cs

設定在針對 SQL Server 時,是否建立索引時使用資料壓縮選項。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<TEntity> UseDataCompression<TEntity>(this Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<TEntity> indexBuilder, Microsoft.EntityFrameworkCore.DataCompressionType dataCompressionType);
static member UseDataCompression : Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<'Entity> * Microsoft.EntityFrameworkCore.DataCompressionType -> Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<'Entity>
<Extension()>
Public Function UseDataCompression(Of TEntity) (indexBuilder As IndexBuilder(Of TEntity), dataCompressionType As DataCompressionType) As IndexBuilder(Of TEntity)

類型參數

TEntity

參數

indexBuilder
IndexBuilder<TEntity>

正在設定索引的建置者。

dataCompressionType
DataCompressionType

一個表示應使用資料壓縮選項的值。

傳回

IndexBuilder<TEntity>

一個建構器來進一步配置索引。

備註

更多資訊與範例請參閱「建模實體類型與關係」,以及「使用 EF Core 存取 SQL Server 與 Azure SQL 資料庫」。

適用於