IConventionNavigationBuilder.AutoInclude 方法

定义

将此导航配置为自动包含在查询中。

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

参数

autoInclude
Nullable<Boolean>

一个值,该值指示是否应自动包含导航。

fromDataAnnotation
Boolean

指示是否使用数据注释指定配置。

返回

如果应用了配置,则为同一生成器实例, null 否则为 。

适用于