NavigationBuilder<TSource,TTarget>.AutoInclude(Boolean) 方法

定义

配置是否应将此导航自动包含在查询中。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.NavigationBuilder<TSource,TTarget> AutoInclude (bool autoInclude = true);
override this.AutoInclude : bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.NavigationBuilder<'Source, 'arget (requires 'Source : null and 'arget : null)>
Public Overridable Function AutoInclude (Optional autoInclude As Boolean = true) As NavigationBuilder(Of TSource, TTarget)

参数

autoInclude
Boolean

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

返回

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

适用于