IMutableModel.FindEntityType 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
FindEntityType(Type, String, IMutableEntityType) |
Gets the entity type for the given name, defining navigation name
and the defining entity type. Returns |
FindEntityType(String, String, IMutableEntityType) |
Gets the entity type for the given name, defining navigation name
and the defining entity type. Returns |
FindEntityType(String) |
Gets the entity with the given name. Returns |
FindEntityType(Type) |
Gets the entity that maps the given entity class. Returns |
FindEntityType(Type, String, IMutableEntityType)
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 virtual Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType? FindEntityType (Type type, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType definingEntityType);
abstract member FindEntityType : Type * string * Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
override this.FindEntityType : Type * string * Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
Public Overridable Function FindEntityType (type As Type, definingNavigationName As String, definingEntityType As IMutableEntityType) As IMutableEntityType
Parameters
- type
- Type
The type of the entity type to find.
- definingNavigationName
- String
The defining navigation of the entity type to find.
- definingEntityType
- IMutableEntityType
The defining entity type of the entity type to find.
Returns
The entity type, or null
if none is found.
Applies to
FindEntityType(String, String, IMutableEntityType)
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 Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType FindEntityType (string name, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType definingEntityType);
public Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType? FindEntityType (string name, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType definingEntityType);
abstract member FindEntityType : string * string * Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
Public Function FindEntityType (name As String, definingNavigationName As String, definingEntityType As IMutableEntityType) As IMutableEntityType
Parameters
- name
- String
The name of the entity type to find.
- definingNavigationName
- String
The defining navigation of the entity type to find.
- definingEntityType
- IMutableEntityType
The defining entity type of the entity type to find.
Returns
The entity type, or null
if none is found.
Applies to
FindEntityType(String)
Gets the entity with the given name. Returns null
if no entity type with the given name is found
or the given CLR type is being used by shared type entity type
or the entity type has a defining navigation.
public Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType FindEntityType (string name);
public Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType? FindEntityType (string name);
abstract member FindEntityType : string -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
Public Function FindEntityType (name As String) As IMutableEntityType
Parameters
- name
- String
The name of the entity type to find.
Returns
The entity type, or null
if none is found.
Applies to
FindEntityType(Type)
Gets the entity that maps the given entity class. 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.IMutableEntityType? FindEntityType (Type type);
abstract member FindEntityType : Type -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
override this.FindEntityType : Type -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
Public Overridable Function FindEntityType (type As Type) As IMutableEntityType
Parameters
- type
- Type
The type to find the corresponding entity type for.
Returns
The entity type, or null
if none is found.
Applies to
Entity Framework