Freigeben über


ConventionModelExtensions.GetEntityTypes Methode

Definition

Überlädt

GetEntityTypes(IConventionModel, Type)
Veraltet.

Ruft die Entitätstypen ab, die dem angegebenen Typ entsprechen.

GetEntityTypes(IConventionModel, String)
Veraltet.

Ruft die Entitätstypen ab, die dem angegebenen Namen entsprechen.

GetEntityTypes(IConventionModel, Type)

Achtung

Use IConventionEntityType.FindEntityTypes

Ruft die Entitätstypen ab, die dem angegebenen Typ entsprechen.

[System.Diagnostics.DebuggerStepThrough]
public static System.Collections.Generic.IReadOnlyCollection<Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType> GetEntityTypes (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, Type type);
[System.Diagnostics.DebuggerStepThrough]
[System.Obsolete("Use IConventionEntityType.FindEntityTypes")]
public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType> GetEntityTypes (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, Type type);
[<System.Diagnostics.DebuggerStepThrough>]
static member GetEntityTypes : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * Type -> System.Collections.Generic.IReadOnlyCollection<Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType>
[<System.Diagnostics.DebuggerStepThrough>]
[<System.Obsolete("Use IConventionEntityType.FindEntityTypes")>]
static member GetEntityTypes : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * Type -> seq<Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType>
<Extension()>
Public Function GetEntityTypes (model As IConventionModel, type As Type) As IReadOnlyCollection(Of IConventionEntityType)
<Extension()>
Public Function GetEntityTypes (model As IConventionModel, type As Type) As IEnumerable(Of IConventionEntityType)

Parameter

model
IConventionModel

Das Modell, in dem der Entitätstyp gesucht werden soll.

type
Type

Der Typ des zu suchenden Entitätstyps.

Gibt zurück

Die gefundenen Entitätstypen.

Attribute

Gilt für:

GetEntityTypes(IConventionModel, String)

Achtung

Use FindEntityTypes(Type) or FindEntityType(string)

Ruft die Entitätstypen ab, die dem angegebenen Namen entsprechen.

[System.Diagnostics.DebuggerStepThrough]
public static System.Collections.Generic.IReadOnlyCollection<Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType> GetEntityTypes (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string name);
[System.Diagnostics.DebuggerStepThrough]
[System.Obsolete("Use FindEntityTypes(Type) or FindEntityType(string)")]
public static System.Collections.Generic.IReadOnlyCollection<Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType> GetEntityTypes (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string name);
[<System.Diagnostics.DebuggerStepThrough>]
static member GetEntityTypes : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * string -> System.Collections.Generic.IReadOnlyCollection<Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType>
[<System.Diagnostics.DebuggerStepThrough>]
[<System.Obsolete("Use FindEntityTypes(Type) or FindEntityType(string)")>]
static member GetEntityTypes : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * string -> System.Collections.Generic.IReadOnlyCollection<Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType>
<Extension()>
Public Function GetEntityTypes (model As IConventionModel, name As String) As IReadOnlyCollection(Of IConventionEntityType)

Parameter

model
IConventionModel

Das Modell, in dem der Entitätstyp gesucht werden soll.

name
String

Der Name des zu suchenden Entitätstyps.

Gibt zurück

Die gefundenen Entitätstypen.

Attribute

Gilt für: