ModelExtensions.HasEntityTypeWithDefiningNavigation Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
HasEntityTypeWithDefiningNavigation(IModel, String) |
Obsolete.
Gets a value indicating whether the model contains a corresponding entity type with a defining navigation. |
HasEntityTypeWithDefiningNavigation(IModel, Type) |
Obsolete.
Gets a value indicating whether the model contains a corresponding entity type with a defining navigation. |
HasEntityTypeWithDefiningNavigation(IModel, String)
Caution
Use FindEntityType(string)?.HasSharedClrType
Gets a value indicating whether the model contains a corresponding entity type with a defining navigation.
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
Parameters
- model
- IModel
The model to find the entity type in.
- name
- String
The name used to find an entity type with a defining navigation.
Returns
true
if the model contains a corresponding entity type with a defining navigation.
- Attributes
Applies to
HasEntityTypeWithDefiningNavigation(IModel, Type)
Caution
Use IsShared(Type)
Gets a value indicating whether the model contains a corresponding entity type with a defining navigation.
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
Parameters
- model
- IModel
The model to find the entity type in.
- type
- Type
The type used to find an entity type a defining navigation.
Returns
true
if the model contains a corresponding entity type with a defining navigation.
- Attributes
Applies to
Entity Framework