ModelExtensions.GetEntityTypes Metodo

Definizione

Overload

GetEntityTypes(IModel, String)
Obsoleti.

Ottiene i tipi di entità corrispondenti al nome specificato.

GetEntityTypes(IModel, Type)
Obsoleti.

Ottiene i tipi di entità corrispondenti al tipo specificato.

GetEntityTypes(IModel, String)

Attenzione

Use FindEntityTypes(Type) or FindEntityType(string)

Ottiene i tipi di entità corrispondenti al nome specificato.

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)

Parametri

model
IModel

Modello in cui trovare il tipo di entità.

name
String

Nome del tipo di entità da trovare.

Restituisce

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

Tipi di entità trovati.

Attributi

Si applica a

GetEntityTypes(IModel, Type)

Attenzione

Use IReadOnlyEntityType.FindEntityTypes

Ottiene i tipi di entità corrispondenti al tipo specificato.

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)

Parametri

model
IModel

Modello in cui trovare il tipo di entità.

type
Type

Tipo del tipo di entità da trovare.

Restituisce

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

Tipi di entità trovati.

Attributi

Si applica a