IReadOnlyPropertyBase 介面

定義

導覽和屬性的基底類型。

public interface IReadOnlyPropertyBase : Microsoft.EntityFrameworkCore.Infrastructure.IReadOnlyAnnotatable
type IReadOnlyPropertyBase = interface
    interface IReadOnlyAnnotatable
Public Interface IReadOnlyPropertyBase
Implements IReadOnlyAnnotatable
衍生
實作

備註

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

屬性

ClrType

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

DeclaringType

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

FieldInfo

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

Item[String]

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

(繼承來源 IReadOnlyAnnotatable)
Name

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

PropertyInfo

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

Sentinel

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

方法

AnnotationsToDebugString(Int32)

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

(繼承來源 IReadOnlyAnnotatable)
FindAnnotation(String)

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

(繼承來源 IReadOnlyAnnotatable)
GetAnnotation(String)

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

(繼承來源 IReadOnlyAnnotatable)
GetAnnotations()

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

(繼承來源 IReadOnlyAnnotatable)
GetFieldName()

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

GetPropertyAccessMode()

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

IsIndexerProperty()

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

IsShadowProperty()

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

適用於