ModelExtensions.FindRuntimeEntityType(IModel, Type) Method

Definition

Gets the entity that maps the given entity class, where the class may be a proxy derived from the actual entity type. Returns null if no entity type with the given CLR type is found or the given CLR type is being used by shared type entity type or the entity type has a defining navigation.

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

Parameters

model
IModel

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