ModelExtensions.FindRuntimeEntityType(IModel, Type) 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.
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
Entity Framework