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