RuntimeModel.FindEntityType(String) Method

Definition

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.

public virtual Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType? FindEntityType (string name);
abstract member FindEntityType : string -> Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType
override this.FindEntityType : string -> Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType
Public Overridable Function FindEntityType (name As String) As RuntimeEntityType

Parameters

name
String

The name of the entity type to find.

Returns

The entity type, or null if none is found.

Applies to