Compartir a través de


ConventionModelExtensions.GetEntityTypes Método

Definición

Sobrecargas

GetEntityTypes(IConventionModel, Type)
Obsoletos.

Obtiene los tipos de entidad que coinciden con el tipo especificado.

GetEntityTypes(IConventionModel, String)
Obsoletos.

Obtiene los tipos de entidad que coinciden con el nombre especificado.

GetEntityTypes(IConventionModel, Type)

Precaución

Use IConventionEntityType.FindEntityTypes

Obtiene los tipos de entidad que coinciden con el tipo especificado.

[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)

Parámetros

model
IConventionModel

Modelo en el que se va a buscar el tipo de entidad.

type
Type

Tipo del tipo de entidad que se va a buscar.

Devoluciones

Los tipos de entidad encontrados.

Atributos

Se aplica a

GetEntityTypes(IConventionModel, String)

Precaución

Use FindEntityTypes(Type) or FindEntityType(string)

Obtiene los tipos de entidad que coinciden con el nombre especificado.

[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)

Parámetros

model
IConventionModel

Modelo en el que se va a buscar el tipo de entidad.

name
String

Nombre del tipo de entidad que se va a buscar.

Devoluciones

Los tipos de entidad encontrados.

Atributos

Se aplica a