ModelExtensions.HasEntityTypeWithDefiningNavigation Méthode

Définition

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 à