Compartir a través de


MutableModelExtensions.GetEntityTypes Método

Definición

Sobrecargas

GetEntityTypes(IMutableModel, String)
Obsoletos.

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

GetEntityTypes(IMutableModel, Type)
Obsoletos.

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

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

Parámetros

model
IMutableModel

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

GetEntityTypes(IMutableModel, Type)

Precaución

Use IMutableEntityType.FindEntityTypes

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

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

Parámetros

model
IMutableModel

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