Condividi tramite


ModelExtensions.HasEntityTypeWithDefiningNavigation Metodo

Definizione

Overload

HasEntityTypeWithDefiningNavigation(IModel, String)
Obsoleti.

Ottiene un valore che indica se il modello contiene un tipo di entità corrispondente con una navigazione che definisce.

HasEntityTypeWithDefiningNavigation(IModel, Type)
Obsoleti.

Ottiene un valore che indica se il modello contiene un tipo di entità corrispondente con una navigazione che definisce.

HasEntityTypeWithDefiningNavigation(IModel, String)

Attenzione

Use FindEntityType(string)?.HasSharedClrType

Ottiene un valore che indica se il modello contiene un tipo di entità corrispondente con una navigazione che definisce.

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

Parametri

model
IModel

Modello in cui trovare il tipo di entità.

name
String

Nome utilizzato per trovare un tipo di entità con uno spostamento definito.

Restituisce

true se il modello contiene un tipo di entità corrispondente con uno spostamento definito.

Attributi

Si applica a

HasEntityTypeWithDefiningNavigation(IModel, Type)

Attenzione

Use IsShared(Type)

Ottiene un valore che indica se il modello contiene un tipo di entità corrispondente con una navigazione che definisce.

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

Parametri

model
IModel

Modello in cui trovare il tipo di entità.

type
Type

Tipo utilizzato per trovare un tipo di entità che definisce lo spostamento.

Restituisce

true se il modello contiene un tipo di entità corrispondente con uno spostamento definito.

Attributi

Si applica a