IKey 介面
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
代表實體類型的主鍵或備用鍵。
public interface IKey : Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable
public interface IKey : Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyKey
type IKey = interface
interface IAnnotatable
type IKey = interface
interface IReadOnlyKey
interface IReadOnlyAnnotatable
interface IAnnotatable
Public Interface IKey
Implements IAnnotatable
Public Interface IKey
Implements IAnnotatable, IReadOnlyKey
- 衍生
- 實作
備註
更多資訊與範例請參閱 建模實體類型與關係 。
屬性
| 名稱 | Description |
|---|---|
| DeclaringEntityType |
取得金鑰所定義的實體類型。 這可能與定義在繼承階層中的衍生型別時所定義的型別 Properties 不同(因為屬性可能定義在基底型態上)。 |
| Item[String] |
取得帶有名稱的註解值,若不存在則回 |
| Properties |
取得構成金鑰的屬性。 |