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

要查找的实体类型的类型。

返回

找到的实体类型。

属性

适用于