Freigeben über


IConventionNavigationBuilder.AutoInclude Methode

Definition

Konfiguriert diese Navigation so, dass sie automatisch in eine Abfrage einbezogen wird.

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

Parameter

autoInclude
Nullable<Boolean>

Ein Wert, der angibt, ob die Navigation automatisch einbezogen werden soll.

fromDataAnnotation
Boolean

Gibt an, ob die Konfiguration mithilfe einer Datenanmerkung angegeben wurde.

Gibt zurück

Derselbe Generator instance, wenn die Konfiguration angewendet wurde, null andernfalls.

Gilt für: