ModelExtensions.HasEntityTypeWithDefiningNavigation Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
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
Commenti e suggerimenti
https://aka.ms/ContentUserFeedback.
Presto disponibile: Nel corso del 2024 verranno gradualmente disattivati i problemi di GitHub come meccanismo di feedback per il contenuto e ciò verrà sostituito con un nuovo sistema di feedback. Per altre informazioni, vedereInvia e visualizza il feedback per