MutableModelExtensions.GetEntityTypes Метод

Определение

Перегрузки

GetEntityTypes(IMutableModel, String)
Устаревшие..

Возвращает типы сущностей, соответствующие заданному имени.

GetEntityTypes(IMutableModel, Type)
Устаревшие..

Возвращает типы сущностей, соответствующие заданному типу.

GetEntityTypes(IMutableModel, String)

Внимание!

Use FindEntityTypes(Type) or FindEntityType(string)

Возвращает типы сущностей, соответствующие заданному имени.

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

Параметры

model
IMutableModel

Модель для поиска типа сущности.

name
String

Имя искать тип сущности.

Возвращаемое значение

Найденные типы сущностей.

Атрибуты

Применяется к

GetEntityTypes(IMutableModel, Type)

Внимание!

Use IMutableEntityType.FindEntityTypes

Возвращает типы сущностей, соответствующие заданному типу.

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

Параметры

model
IMutableModel

Модель для поиска типа сущности.

type
Type

Тип искать тип сущности.

Возвращаемое значение

Найденные типы сущностей.

Атрибуты

Применяется к