RuntimeModel.IModel.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
IModel.FindEntityType(String, String, IEntityType) |
Gets the entity type for the given name, defining navigation name
and the defining entity type. Returns |
IModel.FindEntityType(String) |
Gets the entity with the given name. Returns |
IModel.FindEntityType(Type) |
Gets the entity that maps the given entity class. Returns |
IModel.FindEntityType(String, String, IEntityType)
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.
[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Metadata.IEntityType? IModel.FindEntityType (string name, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IEntityType definingEntityType);
[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Metadata.IEntityType IModel.FindEntityType (string name, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IEntityType definingEntityType);
[<System.Diagnostics.DebuggerStepThrough>]
abstract member Microsoft.EntityFrameworkCore.Metadata.IModel.FindEntityType : string * string * Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.IEntityType
override this.Microsoft.EntityFrameworkCore.Metadata.IModel.FindEntityType : string * string * Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.IEntityType
Function FindEntityType (name As String, definingNavigationName As String, definingEntityType As IEntityType) As IEntityType Implements IModel.FindEntityType
Parameters
- name
- String
The name of the entity type to find.
- definingNavigationName
- String
The defining navigation of the entity type to find.
- definingEntityType
- IEntityType
The defining entity type of the entity type to find.
Returns
The entity type, or null
if none is found.
Implements
- Attributes
Applies to
IModel.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.
[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Metadata.IEntityType? IModel.FindEntityType (string name);
[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Metadata.IEntityType IModel.FindEntityType (string name);
[<System.Diagnostics.DebuggerStepThrough>]
abstract member Microsoft.EntityFrameworkCore.Metadata.IModel.FindEntityType : string -> Microsoft.EntityFrameworkCore.Metadata.IEntityType
override this.Microsoft.EntityFrameworkCore.Metadata.IModel.FindEntityType : string -> Microsoft.EntityFrameworkCore.Metadata.IEntityType
Function FindEntityType (name As String) As IEntityType Implements IModel.FindEntityType
Parameters
- name
- String
The name of the entity type to find.
Returns
The entity type, or null
if none is found.
Implements
- Attributes
Applies to
IModel.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.
[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Metadata.IEntityType? IModel.FindEntityType (Type type);
[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Metadata.IEntityType IModel.FindEntityType (Type type);
[<System.Diagnostics.DebuggerStepThrough>]
abstract member Microsoft.EntityFrameworkCore.Metadata.IModel.FindEntityType : Type -> Microsoft.EntityFrameworkCore.Metadata.IEntityType
override this.Microsoft.EntityFrameworkCore.Metadata.IModel.FindEntityType : Type -> Microsoft.EntityFrameworkCore.Metadata.IEntityType
Function FindEntityType (type As Type) As IEntityType Implements IModel.FindEntityType
Parameters
- type
- Type
The type to find the corresponding entity type for.
Returns
The entity type, or null
if none is found.
Implements
- Attributes
Applies to
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for