共用方式為


NavigationBuilder.AutoInclude(Boolean) 方法

定義

設定此導覽是否應該自動包含在查詢中。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.NavigationBuilder AutoInclude (bool autoInclude = true);
abstract member AutoInclude : bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.NavigationBuilder
override this.AutoInclude : bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.NavigationBuilder
Public Overridable Function AutoInclude (Optional autoInclude As Boolean = true) As NavigationBuilder

參數

autoInclude
Boolean

值,指出是否應該自動包含導覽。

傳回

相同的產生器實例,以便鏈結多個組態呼叫。

適用於