ModelExtensions.GetEntityTypes Methode

Definition

Überlädt

GetEntityTypes(IModel, String)
Veraltet.

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

GetEntityTypes(IModel, Type)
Veraltet.

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

GetEntityTypes(IModel, String)

Achtung

Use FindEntityTypes(Type) or FindEntityType(string)

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

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

Parameter

model
IModel

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

name
String

Der Name des zu suchenden Entitätstyps.

Gibt zurück

IReadOnlyCollection<Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType>

Die gefundenen Entitätstypen.

Attribute

Gilt für:

GetEntityTypes(IModel, Type)

Achtung

Use IReadOnlyEntityType.FindEntityTypes

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

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

Parameter

model
IModel

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

type
Type

Der Typ des zu findenden Entitätstyps.

Gibt zurück

IReadOnlyCollection<Microsoft.EntityFrameworkCore.Metadata.Internal.EntityType>

Die gefundenen Entitätstypen.

Attribute

Gilt für: