語言

IConventionSkipNavigationBuilder 介面

定義

提供一個簡單的 API 表面來設定 IConventionSkipNavigation from 慣例。

此介面通常由資料庫提供者(及其他擴充)使用。 它通常不被用於應用程式程式碼中。

public interface IConventionSkipNavigationBuilder : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBaseBuilder<Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSkipNavigationBuilder>
public interface IConventionSkipNavigationBuilder : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBaseBuilder
type IConventionSkipNavigationBuilder = interface
    interface IConventionPropertyBaseBuilder<IConventionSkipNavigationBuilder>
    interface IConventionAnnotatableBuilder
type IConventionSkipNavigationBuilder = interface
    interface IConventionPropertyBaseBuilder
    interface IConventionAnnotatableBuilder
Public Interface IConventionSkipNavigationBuilder
Implements IConventionPropertyBaseBuilder(Of IConventionSkipNavigationBuilder)
Public Interface IConventionSkipNavigationBuilder
Implements IConventionPropertyBaseBuilder
實作

備註

更多資訊與範例請參閱 模型建構慣例 。

屬性

名稱 Description
Metadata

取得正在設定的導航屬性。

ModelBuilder

會得到模型製作者。

(繼承來源 IConventionAnnotatableBuilder)

方法

名稱 Description
AutoInclude(Nullable<Boolean>, Boolean)

設定此導覽自動包含在查詢中。

CanRemoveAnnotation(String, Boolean)

回傳一個值,指示是否能使用此組態來源移除帶有該名稱的註解。

(繼承來源 IConventionAnnotatableBuilder)
CanSetAnnotation(String, Object, Boolean)

回傳一個值,指示是否能從此配置來源設定包含該名稱與值的註解。

(繼承來源 IConventionAnnotatableBuilder)
CanSetAutoInclude(Nullable<Boolean>, Boolean)

回傳一個值,指示是否能設定此導覽自動包含在目前組態來源的查詢中。

CanSetField(FieldInfo, Boolean)

回傳一個值,表示是否能從當前配置來源設定這個類似性質的物件設定支持欄位。

(繼承來源 IConventionPropertyBaseBuilder)
CanSetField(String, Boolean)

回傳一個值,表示是否能從當前配置來源設定這個類似性質的物件設定支持欄位。

(繼承來源 IConventionPropertyBaseBuilder)
CanSetForeignKey(IConventionForeignKey, Boolean)

回傳一個值,指示是否 ForeignKey 能從給定的配置來源設定此導航。

CanSetInverse(IConventionSkipNavigation, Boolean)

回傳一個值,指示是否 Inverse 能從給定的配置來源設定此導航。

CanSetLazyLoadingEnabled(Nullable<Boolean>, Boolean)

回傳一個值,指示此導航是否可設定以啟用從目前配置來源的懶散載入。

CanSetPropertyAccessMode(Nullable<PropertyAccessMode>, Boolean)

回傳一個值,表示 PropertyAccessMode 是否能從目前設定來源設定此類似性質的物件。

(繼承來源 IConventionPropertyBaseBuilder)
EnableLazyLoading(Nullable<Boolean>, Boolean)

將此導航設定為啟用以支援懶散載入。

HasAnnotation(String, Object, Boolean)

設定以名字儲存的註解。 若已有指定名稱的註解存在相同或更低 ConfigurationSource的標註,則會覆寫現有註解。

(繼承來源 IConventionPropertyBaseBuilder<TBuilder>)
HasField(FieldInfo, Boolean)

設定用於此導航的背景欄位。

HasField(String, Boolean)

設定用於此導航的背景欄位。

HasForeignKey(IConventionForeignKey, Boolean)

設定外鍵。

HasInverse(IConventionSkipNavigation, Boolean)

設定反向跳過導航。

HasNoAnnotation(String, Boolean)

移除這個物件中帶有名字的註解。

(繼承來源 IConventionPropertyBaseBuilder<TBuilder>)
HasNonNullAnnotation(String, Object, Boolean)

設定以名字儲存的註解。 若已有指定名稱的註解存在相同或更低 ConfigurationSource的標註,則會覆寫現有註解。 若指定值, null 則移除註解。

(繼承來源 IConventionPropertyBaseBuilder<TBuilder>)
RemoveAnnotation(String, Boolean)
已淘汰.

移除這個物件中帶有名字的註解。

(繼承來源 IConventionAnnotatableBuilder)
SetOrRemoveAnnotation(String, Object, Boolean)
已淘汰.

設定或移除以名字儲存的註解。

(繼承來源 IConventionAnnotatableBuilder)
UsePropertyAccessMode(Nullable<PropertyAccessMode>, Boolean)

設定 to PropertyAccessMode 用於此導航。

適用於