RuntimeModel.IReadOnlyModel.FindEntityType 方法

定义

重载

IReadOnlyModel.FindEntityType(String)

获取具有给定名称的实体类型。 null如果未找到具有给定名称的实体类型,或者共享类型实体类型正在使用给定 CLR 类型,或者实体类型具有定义导航,则返回 。

IReadOnlyModel.FindEntityType(String, String, IReadOnlyEntityType)

获取给定基名称的实体类型,定义导航名称和定义实体类型。 null如果未找到匹配的实体类型,则返回 。

IReadOnlyModel.FindEntityType(Type, String, IReadOnlyEntityType)

获取给定类型的实体类型,定义导航名称和定义实体类型。 null如果未找到匹配的实体类型,则返回 。

IReadOnlyModel.FindEntityType(Type)

获取映射给定实体类的实体。 null如果未找到具有给定 CLR 类型的实体类型,或者共享类型实体类型正在使用给定 CLR 类型,或者实体类型具有定义导航,则返回 。

IReadOnlyModel.FindEntityType(String)

获取具有给定名称的实体类型。 null如果未找到具有给定名称的实体类型,或者共享类型实体类型正在使用给定 CLR 类型,或者实体类型具有定义导航,则返回 。

[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType? IReadOnlyModel.FindEntityType (string name);
[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType IReadOnlyModel.FindEntityType (string name);
[<System.Diagnostics.DebuggerStepThrough>]
abstract member Microsoft.EntityFrameworkCore.Metadata.IReadOnlyModel.FindEntityType : string -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType
override this.Microsoft.EntityFrameworkCore.Metadata.IReadOnlyModel.FindEntityType : string -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType
Function FindEntityType (name As String) As IReadOnlyEntityType Implements IReadOnlyModel.FindEntityType

参数

name
String

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

返回

实体类型;如果未找到实体类型, null 则为 。

实现

属性

适用于

IReadOnlyModel.FindEntityType(String, String, IReadOnlyEntityType)

获取给定基名称的实体类型,定义导航名称和定义实体类型。 null如果未找到匹配的实体类型,则返回 。

[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType? IReadOnlyModel.FindEntityType (string name, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType definingEntityType);
[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType IReadOnlyModel.FindEntityType (string name, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType definingEntityType);
[<System.Diagnostics.DebuggerStepThrough>]
abstract member Microsoft.EntityFrameworkCore.Metadata.IReadOnlyModel.FindEntityType : string * string * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType
override this.Microsoft.EntityFrameworkCore.Metadata.IReadOnlyModel.FindEntityType : string * string * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType
Function FindEntityType (name As String, definingNavigationName As String, definingEntityType As IReadOnlyEntityType) As IReadOnlyEntityType Implements IReadOnlyModel.FindEntityType

参数

name
String

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

definingNavigationName
String

要查找的实体类型的定义导航。

definingEntityType
IReadOnlyEntityType

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

返回

实体类型;如果未找到实体类型, null 则为 。

实现

属性

适用于

IReadOnlyModel.FindEntityType(Type, String, IReadOnlyEntityType)

获取给定类型的实体类型,定义导航名称和定义实体类型。 null如果未找到匹配的实体类型,则返回 。

[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType? IReadOnlyModel.FindEntityType (Type type, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType definingEntityType);
[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType IReadOnlyModel.FindEntityType (Type type, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType definingEntityType);
[<System.Diagnostics.DebuggerStepThrough>]
abstract member Microsoft.EntityFrameworkCore.Metadata.IReadOnlyModel.FindEntityType : Type * string * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType
override this.Microsoft.EntityFrameworkCore.Metadata.IReadOnlyModel.FindEntityType : Type * string * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType
Function FindEntityType (type As Type, definingNavigationName As String, definingEntityType As IReadOnlyEntityType) As IReadOnlyEntityType Implements IReadOnlyModel.FindEntityType

参数

type
Type

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

definingNavigationName
String

要查找的实体类型的定义导航。

definingEntityType
IReadOnlyEntityType

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

返回

实体类型;如果未找到实体类型, null 则为 。

实现

属性

适用于

IReadOnlyModel.FindEntityType(Type)

获取映射给定实体类的实体。 null如果未找到具有给定 CLR 类型的实体类型,或者共享类型实体类型正在使用给定 CLR 类型,或者实体类型具有定义导航,则返回 。

[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType? IReadOnlyModel.FindEntityType (Type type);
[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType IReadOnlyModel.FindEntityType (Type type);
[<System.Diagnostics.DebuggerStepThrough>]
abstract member Microsoft.EntityFrameworkCore.Metadata.IReadOnlyModel.FindEntityType : Type -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType
override this.Microsoft.EntityFrameworkCore.Metadata.IReadOnlyModel.FindEntityType : Type -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType
Function FindEntityType (type As Type) As IReadOnlyEntityType Implements IReadOnlyModel.FindEntityType

参数

type
Type

要为其查找相应实体类型的类型。

返回

实体类型;如果未找到实体类型, null 则为 。

实现

属性

适用于