ModelExtensions.HasEntityTypeWithDefiningNavigation Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
HasEntityTypeWithDefiningNavigation(IModel, String) |
Obsoletos.
Obtiene un valor que indica si el modelo contiene un tipo de entidad correspondiente con una navegación definitoria. |
HasEntityTypeWithDefiningNavigation(IModel, Type) |
Obsoletos.
Obtiene un valor que indica si el modelo contiene un tipo de entidad correspondiente con una navegación definitoria. |
HasEntityTypeWithDefiningNavigation(IModel, String)
Precaución
Use FindEntityType(string)?.HasSharedClrType
Obtiene un valor que indica si el modelo contiene un tipo de entidad correspondiente con una navegación definitoria.
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
Parámetros
- model
- IModel
Modelo en el que se va a buscar el tipo de entidad.
- name
- String
Nombre usado para buscar un tipo de entidad con una navegación definitoria.
Devoluciones
true
si el modelo contiene un tipo de entidad correspondiente con una navegación que define.
- Atributos
Se aplica a
HasEntityTypeWithDefiningNavigation(IModel, Type)
Precaución
Use IsShared(Type)
Obtiene un valor que indica si el modelo contiene un tipo de entidad correspondiente con una navegación definitoria.
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
Parámetros
- model
- IModel
Modelo en el que se va a buscar el tipo de entidad.
- type
- Type
Tipo usado para buscar un tipo de entidad que define la navegación.
Devoluciones
true
si el modelo contiene un tipo de entidad correspondiente con una navegación que define.
- Atributos