Udostępnij za pośrednictwem


MutableModelExtensions.GetEntityTypes Metoda

Definicja

Przeciążenia

GetEntityTypes(IMutableModel, String)
Przestarzałe.

Pobiera typy jednostek pasujących do podanej nazwy.

GetEntityTypes(IMutableModel, Type)
Przestarzałe.

Pobiera typy jednostek pasujących do danego typu.

GetEntityTypes(IMutableModel, String)

Przestroga

Use FindEntityTypes(Type) or FindEntityType(string)

Pobiera typy jednostek pasujących do podanej nazwy.

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

Parametry

model
IMutableModel

Model do znalezienia typu jednostki.

name
String

Nazwa typu jednostki do znalezienia.

Zwraca

Odnaleziono typy jednostek.

Atrybuty

Dotyczy

GetEntityTypes(IMutableModel, Type)

Przestroga

Use IMutableEntityType.FindEntityTypes

Pobiera typy jednostek pasujących do danego typu.

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

Parametry

model
IMutableModel

Model do znalezienia typu jednostki.

type
Type

Typ jednostki do znalezienia.

Zwraca

Odnaleziono typy jednostek.

Atrybuty

Dotyczy