Sdílet prostřednictvím


IModel.FindEntityType Metoda

Definice

Přetížení

FindEntityType(String)

Získá entitu se zadaným názvem. Vrátí hodnotu null , pokud není nalezen žádný typ entity s daným názvem nebo se daný typ CLR používá pro typ entity sdíleného typu nebo má typ entity definující navigaci.

FindEntityType(Type)

Získá entitu, která mapuje danou třídu entity. Vrátí hodnotu null , pokud není nalezen žádný typ entity s daným typem MODULU CLR nebo je daný typ CLR používán typem entity sdíleného typu nebo pokud má typ entity definující navigaci.

FindEntityType(String, String, IEntityType)

Získá typ entity pro daný název, definuje název navigace a definující typ entity. Vrátí hodnotu null , pokud nebyl nalezen žádný odpovídající typ entity.

FindEntityType(Type, String, IEntityType)

Získá typ entity pro daný název, definuje název navigace a definující typ entity. Vrátí hodnotu null , pokud nebyl nalezen žádný odpovídající typ entity.

FindEntityType(String)

Získá entitu se zadaným názvem. Vrátí hodnotu null , pokud není nalezen žádný typ entity s daným názvem nebo se daný typ CLR používá pro typ entity sdíleného typu nebo má typ entity definující navigaci.

public Microsoft.EntityFrameworkCore.Metadata.IEntityType FindEntityType (string name);
public Microsoft.EntityFrameworkCore.Metadata.IEntityType? FindEntityType (string name);
abstract member FindEntityType : string -> Microsoft.EntityFrameworkCore.Metadata.IEntityType
Public Function FindEntityType (name As String) As IEntityType

Parametry

name
String

Název typu entity, který chcete najít.

Návraty

Typ entity nebo null pokud nebyl nalezen žádný.

Poznámky

Další informace a příklady najdete v tématu Modelování typů entit a relací .

Platí pro

FindEntityType(Type)

Získá entitu, která mapuje danou třídu entity. Vrátí hodnotu null , pokud není nalezen žádný typ entity s daným typem MODULU CLR nebo je daný typ CLR používán typem entity sdíleného typu nebo pokud má typ entity definující navigaci.

public Microsoft.EntityFrameworkCore.Metadata.IEntityType? FindEntityType (Type type);
abstract member FindEntityType : Type -> Microsoft.EntityFrameworkCore.Metadata.IEntityType
Public Function FindEntityType (type As Type) As IEntityType

Parametry

type
Type

Typ, pro který se má najít odpovídající typ entity.

Návraty

Typ entity nebo null pokud nebyl nalezen žádný.

Poznámky

Další informace a příklady najdete v tématu Modelování typů entit a relací .

Platí pro

FindEntityType(String, String, IEntityType)

Získá typ entity pro daný název, definuje název navigace a definující typ entity. Vrátí hodnotu null , pokud nebyl nalezen žádný odpovídající typ entity.

public Microsoft.EntityFrameworkCore.Metadata.IEntityType FindEntityType (string name, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IEntityType definingEntityType);
public Microsoft.EntityFrameworkCore.Metadata.IEntityType? FindEntityType (string name, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IEntityType definingEntityType);
abstract member FindEntityType : string * string * Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.IEntityType
Public Function FindEntityType (name As String, definingNavigationName As String, definingEntityType As IEntityType) As IEntityType

Parametry

name
String

Název typu entity, který chcete najít.

definingNavigationName
String

Definující navigace typu entity, která se má najít.

definingEntityType
IEntityType

Definující typ entity typu entity, který chcete najít.

Návraty

Typ entity nebo null pokud nebyl nalezen žádný.

Poznámky

Další informace a příklady najdete v tématu Modelování typů entit a relací .

Platí pro

FindEntityType(Type, String, IEntityType)

Získá typ entity pro daný název, definuje název navigace a definující typ entity. Vrátí hodnotu null , pokud nebyl nalezen žádný odpovídající typ entity.

public virtual Microsoft.EntityFrameworkCore.Metadata.IEntityType? FindEntityType (Type type, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IEntityType definingEntityType);
abstract member FindEntityType : Type * string * Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.IEntityType
override this.FindEntityType : Type * string * Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.IEntityType
Public Overridable Function FindEntityType (type As Type, definingNavigationName As String, definingEntityType As IEntityType) As IEntityType

Parametry

type
Type

Typ entity, který chcete najít.

definingNavigationName
String

Definující navigace typu entity, která se má najít.

definingEntityType
IEntityType

Definující typ entity typu entity, který chcete najít.

Návraty

Typ entity nebo null pokud nebyl nalezen žádný.

Poznámky

Další informace a příklady najdete v tématu Modelování typů entit a relací .

Platí pro