ModelExtensions.HasEntityTypeWithDefiningNavigation 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
HasEntityTypeWithDefiningNavigation(IModel, String) |
Obsolète.
Obtient une valeur indiquant si le modèle contient un type d’entité correspondant avec une navigation définissante. |
HasEntityTypeWithDefiningNavigation(IModel, Type) |
Obsolète.
Obtient une valeur indiquant si le modèle contient un type d’entité correspondant avec une navigation définissante. |
HasEntityTypeWithDefiningNavigation(IModel, String)
Attention
Use FindEntityType(string)?.HasSharedClrType
Obtient une valeur indiquant si le modèle contient un type d’entité correspondant avec une navigation définissante.
public static bool HasEntityTypeWithDefiningNavigation (this Microsoft.EntityFrameworkCore.Metadata.IModel model, string name);
[System.Diagnostics.DebuggerStepThrough]
public static bool HasEntityTypeWithDefiningNavigation (this Microsoft.EntityFrameworkCore.Metadata.IModel model, string name);
[System.Diagnostics.DebuggerStepThrough]
[System.Obsolete("Use FindEntityType(string)?.HasSharedClrType")]
public static bool HasEntityTypeWithDefiningNavigation (this Microsoft.EntityFrameworkCore.Metadata.IModel model, string name);
static member HasEntityTypeWithDefiningNavigation : Microsoft.EntityFrameworkCore.Metadata.IModel * string -> bool
[<System.Diagnostics.DebuggerStepThrough>]
static member HasEntityTypeWithDefiningNavigation : Microsoft.EntityFrameworkCore.Metadata.IModel * string -> bool
[<System.Diagnostics.DebuggerStepThrough>]
[<System.Obsolete("Use FindEntityType(string)?.HasSharedClrType")>]
static member HasEntityTypeWithDefiningNavigation : Microsoft.EntityFrameworkCore.Metadata.IModel * string -> bool
<Extension()>
Public Function HasEntityTypeWithDefiningNavigation (model As IModel, name As String) As Boolean
Paramètres
- model
- IModel
Modèle dans lequel rechercher le type d’entité.
- name
- String
Nom utilisé pour rechercher un type d’entité avec une navigation définissante.
Retours
true
si le modèle contient un type d’entité correspondant avec une navigation définissante.
- Attributs
S’applique à
HasEntityTypeWithDefiningNavigation(IModel, Type)
Attention
Use IsShared(Type)
Obtient une valeur indiquant si le modèle contient un type d’entité correspondant avec une navigation définissante.
public static bool HasEntityTypeWithDefiningNavigation (this Microsoft.EntityFrameworkCore.Metadata.IModel model, Type type);
[System.Diagnostics.DebuggerStepThrough]
public static bool HasEntityTypeWithDefiningNavigation (this Microsoft.EntityFrameworkCore.Metadata.IModel model, Type type);
[System.Diagnostics.DebuggerStepThrough]
[System.Obsolete("Use IsShared(Type)")]
public static bool HasEntityTypeWithDefiningNavigation (this Microsoft.EntityFrameworkCore.Metadata.IModel model, Type type);
static member HasEntityTypeWithDefiningNavigation : Microsoft.EntityFrameworkCore.Metadata.IModel * Type -> bool
[<System.Diagnostics.DebuggerStepThrough>]
static member HasEntityTypeWithDefiningNavigation : Microsoft.EntityFrameworkCore.Metadata.IModel * Type -> bool
[<System.Diagnostics.DebuggerStepThrough>]
[<System.Obsolete("Use IsShared(Type)")>]
static member HasEntityTypeWithDefiningNavigation : Microsoft.EntityFrameworkCore.Metadata.IModel * Type -> bool
<Extension()>
Public Function HasEntityTypeWithDefiningNavigation (model As IModel, type As Type) As Boolean
Paramètres
- model
- IModel
Modèle dans lequel rechercher le type d’entité.
- type
- Type
Type utilisé pour rechercher un type d’entité un type de définition de navigation.
Retours
true
si le modèle contient un type d’entité correspondant avec une navigation définissante.
- Attributs
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