語言

TableModel 類別

定義

public class TableModel : Microsoft.EntityFrameworkCore.Infrastructure.Annotatable
type TableModel = class
    inherit Annotatable
Public Class TableModel
Inherits Annotatable
繼承
TableModel

建構函式

名稱 Description
TableModel()

屬性

名稱 Description
Columns
Database
DisplayName
ForeignKeys
Indexes
Item[String]

取得帶有名稱的值註解,若不存在則回 null 傳。

(繼承來源 Annotatable)
Name
SchemaName

方法

名稱 Description
AddAnnotation(String, Annotation)

為此物件新增註解。 如果已有指定名稱的註解存在,則會拋出。

(繼承來源 Annotatable)
AddAnnotation(String, Object)

為此物件新增註解。 如果已有指定名稱的註解存在,則會拋出。

(繼承來源 Annotatable)
CreateAnnotation(String, Object)

建立新的註解。

(繼承來源 Annotatable)
FindAnnotation(String)

取得帶有名字的註解,若不存在則回 null 傳。

(繼承來源 Annotatable)
GetAnnotations()

取得目前物件的所有註解。

(繼承來源 Annotatable)
GetOrAddAnnotation(String, Object)

為此物件新增註解,或若已有已具指定名稱的註解,則回傳該標註。

(繼承來源 Annotatable)
OnAnnotationSet(String, Annotation, Annotation)

當註解被設定或移除時會被呼叫。

(繼承來源 Annotatable)
RemoveAnnotation(String)

移除該物件中給定的註解。

(繼承來源 Annotatable)
SetAnnotation(String, Annotation)

設定在指定鍵下儲存的註解。 若已有指定名稱的註解存在,則會覆寫現有註解。

(繼承來源 Annotatable)

明確介面實作

名稱 Description
IAnnotatable.FindAnnotation(String)

取得帶有名稱的註解,若不存在則回傳 null。

(繼承來源 Annotatable)
IAnnotatable.GetAnnotations()

取得目前物件的所有註解。

(繼承來源 Annotatable)

擴充方法

名稱 Description
AddAnnotations(IMutableAnnotatable, IEnumerable<IAnnotation>)

為物件添加註解。

GetAnnotation(IAnnotatable, String)

取得帶有名稱的註解,若不存在則拋出。

GetOrAddAnnotation(IMutableAnnotatable, String, String)

取得帶有特定鍵的現有註解,或若不存在註解則新增。

適用於