ConventionModelExtensions.FindEntityType Method

Definition

Overloads

FindEntityType(IConventionModel, Type)

Gets the entity that maps the given entity class. Returns null if no entity type with the given name is found.

FindEntityType(IConventionModel, Type, String, IConventionEntityType)

Gets the entity type for the given name, defining navigation name and the defining entity type. Returns null if no matching entity type is found.

FindEntityType(IConventionModel, Type)

Gets the entity that maps the given entity class. Returns null if no entity type with the given name is found.

public static Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType FindEntityType (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, Type type);
static member FindEntityType : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * Type -> Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType
<Extension()>
Public Function FindEntityType (model As IConventionModel, type As Type) As IConventionEntityType

Parameters

model
IConventionModel

The model to find the entity type in.

type
Type

The type to find the corresponding entity type for.

Returns

The entity type, or null if none if found.

Applies to

FindEntityType(IConventionModel, Type, String, IConventionEntityType)

Gets the entity type for the given name, defining navigation name and the defining entity type. Returns null if no matching entity type is found.

public static Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType FindEntityType (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, Type type, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType definingEntityType);
static member FindEntityType : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * Type * string * Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType -> Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType
<Extension()>
Public Function FindEntityType (model As IConventionModel, type As Type, definingNavigationName As String, definingEntityType As IConventionEntityType) As IConventionEntityType

Parameters

model
IConventionModel

The model to find the entity type in.

type
Type

The type of the entity type to find.

definingNavigationName
String

The defining navigation of the entity type to find.

definingEntityType
IConventionEntityType

The defining entity type of the entity type to find.

Returns

The entity type, or null if none are found.

Applies to