SqlServerIndexBuilderExtensions.HasFillFactor 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| HasFillFactor(IConventionIndexBuilder, Nullable<Int32>, Boolean) |
在針對 SQL Server 時,設定索引是否使用填充因子選項建立。 |
| HasFillFactor(IndexBuilder, Int32) |
在針對 SQL Server 時,設定索引是否使用填充因子選項建立。 |
| HasFillFactor<TEntity>(IndexBuilder<TEntity>, Int32) |
在針對 SQL Server 時,設定索引是否使用填充因子選項建立。 |
HasFillFactor(IConventionIndexBuilder, Nullable<Int32>, Boolean)
在針對 SQL Server 時,設定索引是否使用填充因子選項建立。
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder? HasFillFactor(this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder indexBuilder, int? fillFactor, bool fromDataAnnotation = false);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder HasFillFactor(this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder indexBuilder, int? fillFactor, bool fromDataAnnotation = false);
static member HasFillFactor : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder * Nullable<int> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder
<Extension()>
Public Function HasFillFactor (indexBuilder As IConventionIndexBuilder, fillFactor As Nullable(Of Integer), Optional fromDataAnnotation As Boolean = false) As IConventionIndexBuilder
參數
- indexBuilder
- IConventionIndexBuilder
正在設定索引的建置者。
- fromDataAnnotation
- Boolean
表示配置是否以資料註解方式指定。
傳回
如果設定是套用,則使用同一個建構者實例, null 否則。
備註
更多資訊與範例請參閱「建模實體類型與關係」,以及「使用 EF Core 存取 SQL Server 與 Azure SQL 資料庫」。
適用於
HasFillFactor(IndexBuilder, Int32)
在針對 SQL Server 時,設定索引是否使用填充因子選項建立。
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder HasFillFactor(this Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder indexBuilder, int fillFactor);
static member HasFillFactor : Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder * int -> Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder
<Extension()>
Public Function HasFillFactor (indexBuilder As IndexBuilder, fillFactor As Integer) As IndexBuilder
參數
- indexBuilder
- IndexBuilder
正在設定索引的建置者。
- fillFactor
- Int32
一個表示該指數是否使用填充因子選項建立的值。
傳回
一個建構器來進一步配置索引。
備註
更多資訊與範例請參閱「建模實體類型與關係」,以及「使用 EF Core 存取 SQL Server 與 Azure SQL 資料庫」。
適用於
HasFillFactor<TEntity>(IndexBuilder<TEntity>, Int32)
在針對 SQL Server 時,設定索引是否使用填充因子選項建立。
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<TEntity> HasFillFactor<TEntity>(this Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<TEntity> indexBuilder, int fillFactor);
static member HasFillFactor : Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<'Entity> * int -> Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<'Entity>
<Extension()>
Public Function HasFillFactor(Of TEntity) (indexBuilder As IndexBuilder(Of TEntity), fillFactor As Integer) As IndexBuilder(Of TEntity)
類型參數
- TEntity
參數
- indexBuilder
- IndexBuilder<TEntity>
正在設定索引的建置者。
- fillFactor
- Int32
一個表示該指數是否使用填充因子選項建立的值。
傳回
一個建構器來進一步配置索引。
備註
更多資訊與範例請參閱「建模實體類型與關係」,以及「使用 EF Core 存取 SQL Server 與 Azure SQL 資料庫」。