SqlServerIndexExtensions 类

定义

SQL Server特定元数据的索引扩展方法。

public static class SqlServerIndexExtensions
type SqlServerIndexExtensions = class
Public Module SqlServerIndexExtensions
继承
SqlServerIndexExtensions

注解

有关详细信息和示例,请参阅为实体类型和关系建模和使用 EF Core 访问SQL Server和Azure SQL数据库

方法

GetDataCompression(IReadOnlyIndex)

返回索引使用的数据压缩。

GetDataCompression(IReadOnlyIndex, StoreObjectIdentifier)

返回索引使用的数据压缩。

GetDataCompressionConfigurationSource(IConventionIndex)

返回 ConfigurationSource 索引使用的数据压缩的 。

GetFillFactor(IIndex)

返回一个值,该值指示索引是否使用填充因子。

GetFillFactor(IReadOnlyIndex)

返回索引使用的填充因子。

GetFillFactor(IReadOnlyIndex, StoreObjectIdentifier)

返回索引使用的填充因子。

GetFillFactorConfigurationSource(IConventionIndex)

返回 ConfigurationSource 索引是否使用填充因子的 。

GetIncludeProperties(IIndex)

如果尚未指定属性名称,则返回包含的属性名称或 null

GetIncludeProperties(IReadOnlyIndex)

如果尚未指定属性名称,则返回包含的属性名称或 null

GetIncludeProperties(IReadOnlyIndex, StoreObjectIdentifier)

如果尚未指定属性名称,则返回包含的属性名称或 null

GetIncludePropertiesConfigurationSource(IConventionIndex)

返回 ConfigurationSource 包含的属性名称的 。

GetIsClusteredConfigurationSource(IConventionIndex)

返回 ConfigurationSource 是否聚集索引的 。

GetIsCreatedOnlineConfigurationSource(IConventionIndex)

返回 ConfigurationSource 索引是否联机的 。

GetSortInTempDb(IReadOnlyIndex)

返回一个值,该值指示索引是否在 tempdb 中排序。

GetSortInTempDb(IReadOnlyIndex, StoreObjectIdentifier)

返回一个值,该值指示索引是否在 tempdb 中排序。

GetSortInTempDbConfigurationSource(IConventionIndex)

返回 ConfigurationSource 是否在 tempdb 中对索引进行排序的 。

IsClustered(IIndex)

返回一个值,该值指示索引是否为聚集索引。

IsClustered(IIndex, StoreObjectIdentifier)

返回一个值,该值指示索引是否为聚集索引。

IsClustered(IReadOnlyIndex)

返回一个值,该值指示索引是否为聚集索引。

IsClustered(IReadOnlyIndex, StoreObjectIdentifier)

返回一个值,该值指示索引是否为聚集索引。

IsCreatedOnline(IIndex)

返回一个值,该值指示索引是否联机。

IsCreatedOnline(IReadOnlyIndex)

返回一个值,该值指示索引是否联机。

IsCreatedOnline(IReadOnlyIndex, StoreObjectIdentifier)

返回一个值,该值指示索引是否联机。

SetDataCompression(IConventionIndex, Nullable<DataCompressionType>, Boolean)

设置一个值,该值指示索引使用的数据压缩。

SetDataCompression(IMutableIndex, Nullable<DataCompressionType>)

设置一个值,该值指示索引使用的数据压缩。

SetFillFactor(IConventionIndex, Nullable<Int32>, Boolean)

定义一个值,该值指示索引是否使用填充因子。

SetFillFactor(IMutableIndex, Nullable<Int32>)

设置一个值,该值指示索引是否使用填充因子。

SetIncludeProperties(IConventionIndex, IReadOnlyList<String>, Boolean)

设置包含的属性名称。

SetIncludeProperties(IMutableIndex, IReadOnlyList<String>)

设置包含的属性名称。

SetIsClustered(IConventionIndex, Nullable<Boolean>, Boolean)

设置一个值,该值指示索引是否聚集。

SetIsClustered(IMutableIndex, Nullable<Boolean>)

设置一个值,该值指示索引是否聚集。

SetIsCreatedOnline(IConventionIndex, Nullable<Boolean>, Boolean)

设置一个值,该值指示索引是否处于联机状态。

SetIsCreatedOnline(IMutableIndex, Nullable<Boolean>)

设置一个值,该值指示索引是否处于联机状态。

SetSortInTempDb(IConventionIndex, Nullable<Boolean>, Boolean)

设置一个值,该值指示索引是否在 tempdb 中排序。

SetSortInTempDb(IMutableIndex, Nullable<Boolean>)

设置一个值,该值指示索引是否在 tempdb 中排序。

适用于