RuntimeModel.IReadOnlyModel.FindEntityType Method

Definition

Overloads

IReadOnlyModel.FindEntityType(String)

Gets the entity type 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.

IReadOnlyModel.FindEntityType(String, String, IReadOnlyEntityType)

Gets the entity type for the given base name, defining navigation name and the defining entity type. Returns null if no matching entity type is found.

IReadOnlyModel.FindEntityType(Type, String, IReadOnlyEntityType)

Gets the entity type for the given type, defining navigation name and the defining entity type. Returns null if no matching entity type is found.

IReadOnlyModel.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.

IReadOnlyModel.FindEntityType(String)

Gets the entity type 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.IReadOnlyEntityType? IReadOnlyModel.FindEntityType (string name);
[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType IReadOnlyModel.FindEntityType (string name);
[<System.Diagnostics.DebuggerStepThrough>]
abstract member Microsoft.EntityFrameworkCore.Metadata.IReadOnlyModel.FindEntityType : string -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType
override this.Microsoft.EntityFrameworkCore.Metadata.IReadOnlyModel.FindEntityType : string -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType
Function FindEntityType (name As String) As IReadOnlyEntityType Implements IReadOnlyModel.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

IReadOnlyModel.FindEntityType(String, String, IReadOnlyEntityType)

Gets the entity type for the given base name, defining navigation name and the defining entity type. Returns null if no matching entity type is found.

[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType? IReadOnlyModel.FindEntityType (string name, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType definingEntityType);
[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType IReadOnlyModel.FindEntityType (string name, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType definingEntityType);
[<System.Diagnostics.DebuggerStepThrough>]
abstract member Microsoft.EntityFrameworkCore.Metadata.IReadOnlyModel.FindEntityType : string * string * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType
override this.Microsoft.EntityFrameworkCore.Metadata.IReadOnlyModel.FindEntityType : string * string * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType
Function FindEntityType (name As String, definingNavigationName As String, definingEntityType As IReadOnlyEntityType) As IReadOnlyEntityType Implements IReadOnlyModel.FindEntityType

Parameters

name
String

The name of the entity type to find.

definingNavigationName
String

The defining navigation of the entity type to find.

definingEntityType
IReadOnlyEntityType

The defining entity type of the entity type to find.

Returns

The entity type, or null if none is found.

Implements

Attributes

Applies to

IReadOnlyModel.FindEntityType(Type, String, IReadOnlyEntityType)

Gets the entity type for the given type, defining navigation name and the defining entity type. Returns null if no matching entity type is found.

[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType? IReadOnlyModel.FindEntityType (Type type, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType definingEntityType);
[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType IReadOnlyModel.FindEntityType (Type type, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType definingEntityType);
[<System.Diagnostics.DebuggerStepThrough>]
abstract member Microsoft.EntityFrameworkCore.Metadata.IReadOnlyModel.FindEntityType : Type * string * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType
override this.Microsoft.EntityFrameworkCore.Metadata.IReadOnlyModel.FindEntityType : Type * string * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType
Function FindEntityType (type As Type, definingNavigationName As String, definingEntityType As IReadOnlyEntityType) As IReadOnlyEntityType Implements IReadOnlyModel.FindEntityType

Parameters

type
Type

The type of the entity type to find.

definingNavigationName
String

The defining navigation of the entity type to find.

definingEntityType
IReadOnlyEntityType

The defining entity type of the entity type to find.

Returns

The entity type, or null if none is found.

Implements

Attributes

Applies to

IReadOnlyModel.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.IReadOnlyEntityType? IReadOnlyModel.FindEntityType (Type type);
[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType IReadOnlyModel.FindEntityType (Type type);
[<System.Diagnostics.DebuggerStepThrough>]
abstract member Microsoft.EntityFrameworkCore.Metadata.IReadOnlyModel.FindEntityType : Type -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType
override this.Microsoft.EntityFrameworkCore.Metadata.IReadOnlyModel.FindEntityType : Type -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType
Function FindEntityType (type As Type) As IReadOnlyEntityType Implements IReadOnlyModel.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