IMutableAnnotatable 介面
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
一個可以公開可修改註解的類別。 註解允許在物件上儲存任意的元資料。
此介面通常由資料庫提供者(及其他擴充)使用。 它通常不被用於應用程式程式碼中。
public interface IMutableAnnotatable : Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable
public interface IMutableAnnotatable : Microsoft.EntityFrameworkCore.Infrastructure.IReadOnlyAnnotatable
type IMutableAnnotatable = interface
interface IAnnotatable
type IMutableAnnotatable = interface
interface IReadOnlyAnnotatable
Public Interface IMutableAnnotatable
Implements IAnnotatable
Public Interface IMutableAnnotatable
Implements IReadOnlyAnnotatable
- 衍生
- 實作
備註
更多資訊與範例請參閱 建模實體類型與關係 。
屬性
| 名稱 | Description |
|---|---|
| Item[String] |
取得或設定註解的值。 |
方法
擴充方法
| 名稱 | Description |
|---|---|
| AddAnnotations(IMutableAnnotatable, IEnumerable<IAnnotation>) |
為物件添加註解。 |
| AnnotationsToDebugString(IAnnotatable, Int32) |
取得物件上所有宣告註解的除錯字串。 |
| GetAnnotation(IAnnotatable, String) |
取得帶有名稱的註解,若不存在則拋出。 |
| GetAnnotation(IMutableAnnotatable, String) |
取得帶有名稱的註解,若不存在則拋出。 |
| GetOrAddAnnotation(IMutableAnnotatable, String, String) |
取得帶有特定鍵的現有註解,或若不存在註解則新增。 |
| SetOrRemoveAnnotation(IMutableAnnotatable, String, Object) |
設定以名字儲存的註解。 若已有指定名稱的註解存在,則會覆寫現有註解。 若 |