IMutableForeignKey.SetPrincipalToDependent Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
SetPrincipalToDependent(MemberInfo) |
Définit la propriété de navigation sur le type d’entité principal qui pointe vers l’entité dépendante. |
SetPrincipalToDependent(String) |
Définit la propriété de navigation sur le type d’entité principal qui pointe vers l’entité dépendante. |
SetPrincipalToDependent(MemberInfo)
Définit la propriété de navigation sur le type d’entité principal qui pointe vers l’entité dépendante.
public Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation SetPrincipalToDependent (System.Reflection.MemberInfo property);
public Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation? SetPrincipalToDependent (System.Reflection.MemberInfo? property);
abstract member SetPrincipalToDependent : System.Reflection.MemberInfo -> Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation
Public Function SetPrincipalToDependent (property As MemberInfo) As IMutableNavigation
Paramètres
- property
- MemberInfo
Nom de la propriété de navigation sur le type principal. Le passage null
entraîne l’absence de propriété de navigation définie.
Retours
Propriété de navigation nouvellement définie.
S’applique à
SetPrincipalToDependent(String)
Définit la propriété de navigation sur le type d’entité principal qui pointe vers l’entité dépendante.
public Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation SetPrincipalToDependent (string name);
public Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation? SetPrincipalToDependent (string? name);
abstract member SetPrincipalToDependent : string -> Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation
Public Function SetPrincipalToDependent (name As String) As IMutableNavigation
Paramètres
- name
- String
Nom de la propriété de navigation sur le type principal. Le passage null
entraîne l’absence de propriété de navigation définie.
Retours
Propriété de navigation nouvellement définie.
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour