Sprache

IConventionSkipNavigationBuilder.AutoInclude Methode

Definition

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

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

Parameter

autoInclude
Nullable<Boolean>

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

fromDataAnnotation
Boolean

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

Gibt zurück

Die gleiche Generatorinstanz, wenn die Konfiguration angewendet wurde, null andernfalls.

Gilt für: