Share via


ModelExtensions.GetEntityTypes Méthode

Définition

Surcharges

GetEntityTypes(IModel, String)
Obsolète.

Obtient les types d’entités correspondant au nom donné.

GetEntityTypes(IModel, Type)
Obsolète.

Obtient les types d’entités correspondant au type donné.

GetEntityTypes(IModel, String)

Attention

Use FindEntityTypes(Type) or FindEntityType(string)

Obtient les types d’entités correspondant au nom donné.

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)

Paramètres

model
IModel

Modèle dans lequel trouver le type d’entité.

name
String

Nom du type d’entité à rechercher.

Retours

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

Types d’entités trouvés.

Attributs

S’applique à

GetEntityTypes(IModel, Type)

Attention

Use IReadOnlyEntityType.FindEntityTypes

Obtient les types d’entités correspondant au type donné.

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)

Paramètres

model
IModel

Modèle dans lequel trouver le type d’entité.

type
Type

Type du type d’entité à rechercher.

Retours

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

Types d’entités trouvés.

Attributs

S’applique à