IConventionNavigationBase 介面
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
代表一種可用於導航關係的導航屬性。
public interface IConventionNavigationBase : Microsoft.EntityFrameworkCore.Metadata.IConventionPropertyBase, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyNavigationBase
public interface IConventionNavigationBase : Microsoft.EntityFrameworkCore.Metadata.IConventionPropertyBase, Microsoft.EntityFrameworkCore.Metadata.INavigationBase
type IConventionNavigationBase = interface
interface IReadOnlyNavigationBase
interface IReadOnlyPropertyBase
interface IReadOnlyAnnotatable
interface IConventionPropertyBase
interface IConventionAnnotatable
type IConventionNavigationBase = interface
interface INavigationBase
interface IPropertyBase
interface IAnnotatable
interface IConventionPropertyBase
interface IConventionAnnotatable
Public Interface IConventionNavigationBase
Implements IConventionPropertyBase, IReadOnlyNavigationBase
Public Interface IConventionNavigationBase
Implements IConventionPropertyBase, INavigationBase
- 衍生
- 實作
備註
此介面用於模型建立時,允許修改元資料。 模型建構完成後,代表 IReadOnlyNavigationBase 同一元資料的唯讀視圖。
更多資訊與範例請參閱 模型建構慣例 。
屬性
| 名稱 | Description |
|---|---|
| Builder |
取得可用來配置此物件的建構工具。 (繼承來源 IConventionAnnotatable) |
| ClrType |
取得這個類屬性物件所持有的值類型。 (繼承來源 IPropertyBase) |
| DeclaringEntityType |
已淘汰.
取得該屬性所屬的實體類型。 (繼承來源 IPropertyBase) |
| DeclaringType |
取得這個類性質物件所屬的類型。 (繼承來源 IPropertyBase) |
| FieldInfo |
取得這個類屬性物件底層 CLR 欄位的 。FieldInfo
這可能是 |
| Inverse |
會用反向導航。 (繼承來源 INavigationBase) |
| IsCollection |
取得一個值,表示導航屬性是否為集合屬性。 (繼承來源 INavigationBase) |
| IsEagerLoaded |
會取得一個值,指示此導航是否應該預設為急載。 (繼承來源 INavigationBase) |
| IsInModel |
表示該物件是否在模型中,也就是尚未從模型中移除。 (繼承來源 IConventionAnnotatable) |
| IsShadowProperty |
會得到一個值,表示這是否是影子屬性。 影子屬性是指在實體類別中沒有對應屬性的屬性。 屬性的當前值會儲存在實體 ChangeTracker 類別的實例中,而非儲存在實體類別的實例中。 (繼承來源 IPropertyBase) |
| Item[String] |
取得帶有名稱的值註解,若不存在則回 |
| LazyLoadingEnabled |
判斷若啟用怠載且模型中已配置緩載機制,是否應進行此導航。 (繼承來源 IReadOnlyNavigationBase) |
| Name |
取得這個類性質物件的名稱。 (繼承來源 IPropertyBase) |
| PropertyInfo |
取得該類性質物件底層 CLR 屬性的 。PropertyInfo
這可能是 |
| Sentinel |
取得哨兵值,表示此屬性未被設定。 (繼承來源 IReadOnlyPropertyBase) |
| TargetEntityType |
取得這個導航屬性將承載實例的實體類型。 |
方法
明確介面實作
| 名稱 | Description |
|---|---|
| IPropertyBase.GetPropertyAccessMode() |
這塊 PropertyAccessMode 地被用來做事。
|
| IReadOnlyPropertyBase.IsShadowProperty() |
會得到一個值,表示這是否是影子屬性。 影子屬性是指在實體類別中沒有對應屬性的屬性。 屬性的當前值會儲存在實體 ChangeTracker 類別的實例中,而非儲存在實體類別的實例中。 (繼承來源 IReadOnlyNavigationBase) |