IConventionSkipNavigationBuilder.AutoInclude(Nullable<Boolean>, Boolean) Method

Definition

Configures this navigation to be automatically included in a query.

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

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

IConventionSkipNavigationBuilder

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

Applies to