Sdílet prostřednictvím


ModelExtensions.FindEntityType Metoda

Definice

Přetížení

FindEntityType(IModel, Type)
Zastaralé.

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(IModel, Type, String, IEntityType)

Získá typ entity pro daný typ, 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(IModel, Type)

Upozornění

Use IReadOnlyEntityType.FindEntityType

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.IEntityType FindEntityType (this Microsoft.EntityFrameworkCore.Metadata.IModel model, Type type);
[System.Diagnostics.DebuggerStepThrough]
public static Microsoft.EntityFrameworkCore.Metadata.IEntityType FindEntityType (this Microsoft.EntityFrameworkCore.Metadata.IModel model, Type type);
[System.Diagnostics.DebuggerStepThrough]
[System.Obsolete("Use IReadOnlyEntityType.FindEntityType")]
public static Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType? FindEntityType (this Microsoft.EntityFrameworkCore.Metadata.IModel model, Type type);
static member FindEntityType : Microsoft.EntityFrameworkCore.Metadata.IModel * Type -> Microsoft.EntityFrameworkCore.Metadata.IEntityType
[<System.Diagnostics.DebuggerStepThrough>]
static member FindEntityType : Microsoft.EntityFrameworkCore.Metadata.IModel * Type -> Microsoft.EntityFrameworkCore.Metadata.IEntityType
[<System.Diagnostics.DebuggerStepThrough>]
[<System.Obsolete("Use IReadOnlyEntityType.FindEntityType")>]
static member FindEntityType : Microsoft.EntityFrameworkCore.Metadata.IModel * Type -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType
<Extension()>
Public Function FindEntityType (model As IModel, type As Type) As IEntityType
<Extension()>
Public Function FindEntityType (model As IModel, type As Type) As IReadOnlyEntityType

Parametry

model
IModel

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 nebyl nalezen žádný.

Atributy

Platí pro

FindEntityType(IModel, Type, String, IEntityType)

Získá typ entity pro daný typ, 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.IEntityType FindEntityType (this Microsoft.EntityFrameworkCore.Metadata.IModel model, Type type, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IEntityType definingEntityType);
[System.Diagnostics.DebuggerStepThrough]
public static Microsoft.EntityFrameworkCore.Metadata.IEntityType FindEntityType (this Microsoft.EntityFrameworkCore.Metadata.IModel model, Type type, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IEntityType definingEntityType);
static member FindEntityType : Microsoft.EntityFrameworkCore.Metadata.IModel * Type * string * Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.IEntityType
[<System.Diagnostics.DebuggerStepThrough>]
static member FindEntityType : Microsoft.EntityFrameworkCore.Metadata.IModel * Type * string * Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.IEntityType
<Extension()>
Public Function FindEntityType (model As IModel, type As Type, definingNavigationName As String, definingEntityType As IEntityType) As IEntityType

Parametry

model
IModel

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
IEntityType

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

Návraty

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

Atributy

Platí pro