Sdílet prostřednictvím


MutableModelExtensions.FindEntityType Metoda

Definice

Přetížení

FindEntityType(IMutableModel, Type)

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

FindEntityType(IMutableModel, Type, String, IMutableEntityType)

Získá typ entity pro daný název, definování navigačního názvu a definující typ entity. Vrátí, null pokud není nalezen žádný odpovídající typ entity.

FindEntityType(IMutableModel, Type)

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

public static Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType FindEntityType (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, Type type);
static member FindEntityType : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * Type -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
<Extension()>
Public Function FindEntityType (model As IMutableModel, type As Type) As IMutableEntityType

Parametry

model
IMutableModel

Model, ve který se má najít typ entity.

type
Type

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

Návraty

Typ entity, nebo null pokud není nalezen žádný.

Platí pro

FindEntityType(IMutableModel, Type, String, IMutableEntityType)

Získá typ entity pro daný název, definování navigačního názvu a definující typ entity. Vrátí, null pokud není nalezen žádný odpovídající typ entity.

public static Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType FindEntityType (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, Type type, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType definingEntityType);
static member FindEntityType : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * Type * string * Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
<Extension()>
Public Function FindEntityType (model As IMutableModel, type As Type, definingNavigationName As String, definingEntityType As IMutableEntityType) As IMutableEntityType

Parametry

model
IMutableModel

Model, ve který se má najít typ entity.

type
Type

Typ entity, který se má najít.

definingNavigationName
String

Definování navigace typu entity, který se má najít.

definingEntityType
IMutableEntityType

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

Návraty

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

Platí pro