共用方式為


IConventionSkipNavigationBuilder.AutoInclude 方法

定義

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

public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSkipNavigationBuilder AutoInclude (bool? autoInclude, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSkipNavigationBuilder? AutoInclude (bool? autoInclude, bool fromDataAnnotation = false);
abstract member AutoInclude : Nullable<bool> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSkipNavigationBuilder
Public Function AutoInclude (autoInclude As Nullable(Of Boolean), Optional fromDataAnnotation As Boolean = false) As IConventionSkipNavigationBuilder

參數

autoInclude
Nullable<Boolean>

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

fromDataAnnotation
Boolean

指出是否使用資料批註來指定組態。

傳回

如果套用組態,則為相同的產生器實例, null 否則為 。

適用於