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

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

返回

同一个生成器实例,以便可以链接多个配置调用。

适用于