IMutableComplexProperty 介面

定義

表示結構類型的複雜屬性。

public interface IMutableComplexProperty : Microsoft.EntityFrameworkCore.Metadata.IMutablePropertyBase, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyComplexProperty
type IMutableComplexProperty = interface
    interface IReadOnlyComplexProperty
    interface IReadOnlyPropertyBase
    interface IReadOnlyAnnotatable
    interface IMutablePropertyBase
    interface IMutableAnnotatable
Public Interface IMutableComplexProperty
Implements IMutablePropertyBase, IReadOnlyComplexProperty
實作

備註

此介面會在模型建立期間使用,並允許修改中繼資料。 建置模型之後, IComplexProperty 表示相同中繼資料的唯讀檢視。

如需詳細資訊和範例,請參閱 模型化實體類型和關聯 性。

屬性

ClrType

取得這個類似屬性的物件所保留的值型別。

(繼承來源 IReadOnlyPropertyBase)
ComplexType

取得相關聯的複雜型別。

DeclaringType

取得這個類似屬性的物件所屬的類型。

(繼承來源 IReadOnlyPropertyBase)
FieldInfo

FieldInfo取得此屬性類似物件之基礎 CLR 欄位的 。 null這可能適用于陰影屬性,或如果不支援欄位則為 。

(繼承來源 IReadOnlyPropertyBase)
IsCollection

取得值,指出這個屬性是否代表集合。

(繼承來源 IReadOnlyComplexProperty)
IsNullable

取得或設定值,指出這個屬性是否可以包含 null

Item[String]

取得或設定具有指定名稱之注釋的值。

(繼承來源 IMutableAnnotatable)
Name

取得這個類似屬性的物件名稱。

(繼承來源 IReadOnlyPropertyBase)
PropertyInfo

PropertyInfo取得此屬性類似物件之基礎 CLR 屬性的 。 這適用于陰影屬性,或者如果直接對應至欄位,則 null 為 。

(繼承來源 IReadOnlyPropertyBase)
Sentinel

取得 sentinel 值,這個值表示未設定這個屬性。

(繼承來源 IReadOnlyPropertyBase)

方法

AddAnnotation(String, Object)

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

(繼承來源 IMutableAnnotatable)
AddAnnotations(IEnumerable<IAnnotation>)

將批註加入物件。

(繼承來源 IMutableAnnotatable)
AnnotationsToDebugString(Int32)

取得 物件上宣告之所有批註的偵錯字串。

(繼承來源 IReadOnlyAnnotatable)
FindAnnotation(String)

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

(繼承來源 IMutableAnnotatable)
GetAnnotation(String)

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

(繼承來源 IReadOnlyAnnotatable)
GetAnnotations()

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

(繼承來源 IMutableAnnotatable)
GetFieldName()

取得這個屬性的備份欄位名稱,如果不知道支援欄位,則 null 為 。

(繼承來源 IReadOnlyPropertyBase)
GetPropertyAccessMode()

PropertyAccessMode取得用於此屬性類似物件的 。

(繼承來源 IReadOnlyPropertyBase)
IsIndexerProperty()

取得值,指出這個 是否為索引子屬性。 索引子屬性是透過實體類別上的索引子存取的屬性。

(繼承來源 IReadOnlyPropertyBase)
IsShadowProperty()

取得值,指出這個 是否為陰影屬性。 陰影屬性是實體類別中沒有對應屬性的陰影屬性。 屬性的目前值會儲存在 中 ChangeTracker ,而不是儲存在實體類別的實例中。

(繼承來源 IReadOnlyPropertyBase)
RemoveAnnotation(String)

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

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

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

(繼承來源 IMutableAnnotatable)
SetField(String)

設定此屬性應該使用的基礎 CLR 欄位。

(繼承來源 IMutablePropertyBase)
SetOrRemoveAnnotation(String, Object)

設定儲存在指定名稱下的批註。 如果具有指定名稱的注釋已經存在,則覆寫現有的注釋。 如果 null 已提供,則移除現有的批註。

(繼承來源 IMutableAnnotatable)
SetPropertyAccessMode(Nullable<PropertyAccessMode>)

PropertyAccessMode設定要用於這個屬性的 。

(繼承來源 IMutablePropertyBase)
ToDebugString(MetadataDebugStringOptions, Int32)

建立人類可讀取的指定中繼資料標記法。

警告:請勿依賴傳回字串的格式。 它是專為偵錯而設計,而且可能會在發行之間任意變更。

(繼承來源 IReadOnlyComplexProperty)

明確介面實作

IReadOnlyComplexProperty.IsNullable

取得值,指出這個屬性是否可以包含 null

適用於