IModel.FindRuntimeEntityType(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 virtual Microsoft.EntityFrameworkCore.Metadata.IEntityType? FindRuntimeEntityType (Type type);
public virtual Microsoft.EntityFrameworkCore.Metadata.IEntityType? FindRuntimeEntityType (Type? type);
abstract member FindRuntimeEntityType : Type -> Microsoft.EntityFrameworkCore.Metadata.IEntityType
override this.FindRuntimeEntityType : Type -> Microsoft.EntityFrameworkCore.Metadata.IEntityType
Public Overridable Function FindRuntimeEntityType (type As Type) As IEntityType
Parameters
- type
- Type
The type to find the corresponding entity type for.
Returns
The entity type, or null
if none is found.
Remarks
See Modeling entity types and relationships for more information and examples.
Applies to
Entity Framework