Share via


ColumnModel 類別

定義

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

建構函式

ColumnModel()

屬性

ComputedValue
DataType
DefaultValue
DisplayName
IsNullable
Item[String]

取得具有指定名稱的值批註,如果不存在,則傳 null 回 。

(繼承來源 Annotatable)
MaxLength
Name
Ordinal
Precision
PrimaryKeyOrdinal
Scale
Table
ValueGenerated

方法

AddAnnotation(String, Annotation)

將批註加入至這個物件。 如果具有指定名稱的注釋已經存在,則會擲回 。

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

將批註加入至這個物件。 如果具有指定名稱的注釋已經存在,則會擲回 。

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

建立新的批註。

(繼承來源 Annotatable)
EnsureMutable()

如果模型是唯讀的,則會擲回 。

(繼承來源 Annotatable)
EnsureReadOnly()

如果模型不是唯讀,則會擲回 。

(繼承來源 Annotatable)
FindAnnotation(String)

取得具有指定名稱的注釋,如果不存在,則傳 null 回 。

(繼承來源 Annotatable)
GetAnnotations()

取得目前 物件上的所有批註。

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

將批註加入至這個物件,如果具有指定名稱的注釋已經存在,則傳回現有的批註。

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

設定或移除批註時呼叫。

(繼承來源 Annotatable)
RemoveAnnotation(String)

從這個 物件中移除指定的注釋。

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

設定儲存在指定索引鍵底下的注釋。 如果具有指定名稱的注釋已經存在,則覆寫現有的注釋。

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

設定儲存在指定索引鍵底下的注釋。 如果具有指定名稱的注釋已經存在,則覆寫現有的注釋。

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

設定儲存在指定索引鍵底下的注釋。 如果具有指定名稱的注釋已經存在,則覆寫現有的注釋。

(繼承來源 Annotatable)

明確介面實作

IAnnotatable.FindAnnotation(String)

取得具有指定名稱的注釋,如果不存在,則傳回 null。

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

取得目前 物件上的所有批註。

(繼承來源 Annotatable)

擴充方法

GetAnnotation(IAnnotatable, String)

取得具有指定名稱的注釋,如果不存在,則會擲回。

AddAnnotations(IMutableAnnotatable, IEnumerable<IAnnotation>)

將批註加入物件。

GetOrAddAnnotation(IMutableAnnotatable, String, String)

取得具有指定索引鍵的現有注釋,如果不存在,則加入新的批註。

適用於