Share via


IConventionNavigationBuilder.AutoInclude Method

Definition

Configures this navigation to be automatically included in a query.

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

Parameters

autoInclude
Nullable<Boolean>

A value indicating whether the navigation should be automatically included.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The same builder instance if the configuration was applied, null otherwise.

Applies to