語言

KeyExtensions 類別

定義

警告

Use IReadOnlyKey

的 IReadOnlyKey擴展方法 。

public static class KeyExtensions
[System.Obsolete("Use IReadOnlyKey")]
public static class KeyExtensions
type KeyExtensions = class
[<System.Obsolete("Use IReadOnlyKey")>]
type KeyExtensions = class
Public Module KeyExtensions
Public Class KeyExtensions
繼承
KeyExtensions
屬性

方法

名稱 Description
GetKeyType(IKey)
已淘汰.

對於簡單鍵,會回傳金鑰屬性的型別,對於複合金鑰則會回傳物件陣列的型別。

GetPrincipalKeyValueFactory<TKey>(IKey)
已淘汰.

根據從各種實體資料取得的索引鍵值,獲得一個關鍵值的工廠。

此方法通常由資料庫提供者(及其他擴充)使用。 它通常不被用於應用程式程式碼中。

GetReferencingForeignKeys(IKey)
已淘汰.

取得所有針對特定主鍵或備用鍵的外鍵。

IsPrimaryKey(IKey)
已淘汰.

回傳一個值,表示該鍵是否為主鍵。

ToDebugString(IKey, MetadataDebugStringOptions, Int32)
已淘汰.

建立給定元資料的可讀表示法。

警告:請勿依賴回傳字串的格式。 它僅設計用於除錯,且可能在不同版本間任意變動。

適用於