語言

SqlServerKeyExtensions 類別

定義

針對 SQL Server 特定元資料的關鍵擴充方法。

[System.Runtime.CompilerServices.Nullable(0)]
public static class SqlServerKeyExtensions
public static class SqlServerKeyExtensions
[<System.Runtime.CompilerServices.Nullable(0)>]
type SqlServerKeyExtensions = class
type SqlServerKeyExtensions = class
Public Module SqlServerKeyExtensions
繼承
SqlServerKeyExtensions
屬性

備註

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

方法

名稱 Description
GetFillFactor(IReadOnlyKey, StoreObjectIdentifier)

回傳金鑰所使用的填充因子。

GetFillFactor(IReadOnlyKey)

回傳金鑰所使用的填充因子。

GetFillFactorConfigurationSource(IConventionKey)

回傳 , ConfigurationSource 對於金鑰是否使用填充因子。

GetIsClusteredConfigurationSource(IConventionKey)

取得 ConfigurationSource for 鍵值是否為叢集。

IsClustered(IKey, StoreObjectIdentifier)

回傳一個值,表示該金鑰是否為叢集。

IsClustered(IKey)

回傳一個值,表示該金鑰是否為叢集。

IsClustered(IReadOnlyKey, StoreObjectIdentifier)

回傳一個值,表示該金鑰是否為叢集。

IsClustered(IReadOnlyKey)

回傳一個值,表示該金鑰是否為叢集。

SetFillFactor(IConventionKey, Nullable<Int32>, Boolean)

設定金鑰所用的填充因子值。

SetFillFactor(IMutableKey, Nullable<Int32>)

設定金鑰所用的填充因子值。

SetIsClustered(IConventionKey, Nullable<Boolean>, Boolean)

設定一個值,表示該鍵是否為叢集。

SetIsClustered(IMutableKey, Nullable<Boolean>)

設定一個值,表示該鍵是否為叢集。

適用於