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 否则为 。

适用于