Partager via


RuntimeEntityType.AddSkipNavigation Méthode

Définition

Surcharges

AddSkipNavigation(String, RuntimeEntityType, RuntimeForeignKey, Boolean, Boolean, Type, PropertyInfo, FieldInfo, PropertyAccessMode, Boolean)

Ajoute une nouvelle propriété de navigation skip à ce type d’entité.

AddSkipNavigation(String, RuntimeEntityType, RuntimeForeignKey, Boolean, Boolean, Type, PropertyInfo, FieldInfo, PropertyAccessMode, Boolean, Boolean)

Ajoute une nouvelle propriété de navigation skip à ce type d’entité.

AddSkipNavigation(String, RuntimeEntityType, RuntimeForeignKey, Boolean, Boolean, Type, PropertyInfo, FieldInfo, PropertyAccessMode, Boolean)

Ajoute une nouvelle propriété de navigation skip à ce type d’entité.

public virtual Microsoft.EntityFrameworkCore.Metadata.RuntimeSkipNavigation AddSkipNavigation (string name, Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType targetEntityType, Microsoft.EntityFrameworkCore.Metadata.RuntimeForeignKey foreignKey, bool collection, bool onDependent, Type clrType, System.Reflection.PropertyInfo? propertyInfo = default, System.Reflection.FieldInfo? fieldInfo = default, Microsoft.EntityFrameworkCore.PropertyAccessMode propertyAccessMode = Microsoft.EntityFrameworkCore.PropertyAccessMode.PreferField, bool eagerLoaded = false);
abstract member AddSkipNavigation : string * Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType * Microsoft.EntityFrameworkCore.Metadata.RuntimeForeignKey * bool * bool * Type * System.Reflection.PropertyInfo * System.Reflection.FieldInfo * Microsoft.EntityFrameworkCore.PropertyAccessMode * bool -> Microsoft.EntityFrameworkCore.Metadata.RuntimeSkipNavigation
override this.AddSkipNavigation : string * Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType * Microsoft.EntityFrameworkCore.Metadata.RuntimeForeignKey * bool * bool * Type * System.Reflection.PropertyInfo * System.Reflection.FieldInfo * Microsoft.EntityFrameworkCore.PropertyAccessMode * bool -> Microsoft.EntityFrameworkCore.Metadata.RuntimeSkipNavigation
Public Overridable Function AddSkipNavigation (name As String, targetEntityType As RuntimeEntityType, foreignKey As RuntimeForeignKey, collection As Boolean, onDependent As Boolean, clrType As Type, Optional propertyInfo As PropertyInfo = Nothing, Optional fieldInfo As FieldInfo = Nothing, Optional propertyAccessMode As PropertyAccessMode = Microsoft.EntityFrameworkCore.PropertyAccessMode.PreferField, Optional eagerLoaded As Boolean = false) As RuntimeSkipNavigation

Paramètres

name
String

Nom de la propriété de navigation skip à ajouter.

targetEntityType
RuntimeEntityType

Type d’entité dont la propriété de navigation skip contiendra une ou plusieurs instance.

foreignKey
RuntimeForeignKey

Clé étrangère du type de jointure.

collection
Boolean

Indique si la propriété de navigation est une propriété de collection.

onDependent
Boolean

Indique si la propriété de navigation est définie du côté dépendant de la clé étrangère sous-jacente.

clrType
Type

Type de valeur que contient cette navigation.

propertyInfo
PropertyInfo

Propriété CLR correspondante ou null pour une navigation fantôme.

fieldInfo
FieldInfo

Champ CLR correspondant ou null pour une navigation d’ombre.

propertyAccessMode
PropertyAccessMode

PropertyAccessMode utilisé pour cette navigation.

eagerLoaded
Boolean

Valeur indiquant si cette navigation doit être chargée avec ardeur par défaut.

Retours

Propriété de navigation skip nouvellement créée.

S’applique à

AddSkipNavigation(String, RuntimeEntityType, RuntimeForeignKey, Boolean, Boolean, Type, PropertyInfo, FieldInfo, PropertyAccessMode, Boolean, Boolean)

Ajoute une nouvelle propriété de navigation skip à ce type d’entité.

public virtual Microsoft.EntityFrameworkCore.Metadata.RuntimeSkipNavigation AddSkipNavigation (string name, Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType targetEntityType, Microsoft.EntityFrameworkCore.Metadata.RuntimeForeignKey foreignKey, bool collection, bool onDependent, Type clrType, System.Reflection.PropertyInfo? propertyInfo = default, System.Reflection.FieldInfo? fieldInfo = default, Microsoft.EntityFrameworkCore.PropertyAccessMode propertyAccessMode = Microsoft.EntityFrameworkCore.PropertyAccessMode.PreferField, bool eagerLoaded = false, bool lazyLoadingEnabled = true);
abstract member AddSkipNavigation : string * Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType * Microsoft.EntityFrameworkCore.Metadata.RuntimeForeignKey * bool * bool * Type * System.Reflection.PropertyInfo * System.Reflection.FieldInfo * Microsoft.EntityFrameworkCore.PropertyAccessMode * bool * bool -> Microsoft.EntityFrameworkCore.Metadata.RuntimeSkipNavigation
override this.AddSkipNavigation : string * Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType * Microsoft.EntityFrameworkCore.Metadata.RuntimeForeignKey * bool * bool * Type * System.Reflection.PropertyInfo * System.Reflection.FieldInfo * Microsoft.EntityFrameworkCore.PropertyAccessMode * bool * bool -> Microsoft.EntityFrameworkCore.Metadata.RuntimeSkipNavigation
Public Overridable Function AddSkipNavigation (name As String, targetEntityType As RuntimeEntityType, foreignKey As RuntimeForeignKey, collection As Boolean, onDependent As Boolean, clrType As Type, Optional propertyInfo As PropertyInfo = Nothing, Optional fieldInfo As FieldInfo = Nothing, Optional propertyAccessMode As PropertyAccessMode = Microsoft.EntityFrameworkCore.PropertyAccessMode.PreferField, Optional eagerLoaded As Boolean = false, Optional lazyLoadingEnabled As Boolean = true) As RuntimeSkipNavigation

Paramètres

name
String

Nom de la propriété de navigation skip à ajouter.

targetEntityType
RuntimeEntityType

Type d’entité dont la propriété de navigation skip contiendra une ou plusieurs instance.

foreignKey
RuntimeForeignKey

Clé étrangère du type de jointure.

collection
Boolean

Indique si la propriété de navigation est une propriété de collection.

onDependent
Boolean

Indique si la propriété de navigation est définie du côté dépendant de la clé étrangère sous-jacente.

clrType
Type

Type de valeur que contient cette navigation.

propertyInfo
PropertyInfo

Propriété CLR correspondante ou null pour une navigation fantôme.

fieldInfo
FieldInfo

Champ CLR correspondant ou null pour une navigation d’ombre.

propertyAccessMode
PropertyAccessMode

PropertyAccessMode utilisé pour cette navigation.

eagerLoaded
Boolean

Valeur indiquant si cette navigation doit être chargée avec ardeur par défaut.

lazyLoadingEnabled
Boolean

Valeur indiquant si cette navigation doit être activée pour le chargement différé.

Retours

Propriété de navigation skip nouvellement créée.

S’applique à