共用方式為


RuntimeModel.IModel.FindEntityType 方法

定義

多載

IModel.FindEntityType(String, String, IEntityType)

取得指定名稱的實體類型,定義導覽名稱和定義實體類型。 如果找不到相符的實體類型,則傳 null 回 。

IModel.FindEntityType(String)

取得具有指定名稱的實體。 null如果找不到具有指定名稱的實體類型,或共用類型實體類型正在使用指定的 CLR 類型,或實體類型具有定義導覽,則傳回 。

IModel.FindEntityType(Type)

取得對應指定實體類別的實體。 null如果找不到具有指定 CLR 類型的實體類型,或共用類型實體類型正在使用指定的 CLR 類型,或實體類型具有定義導覽,則傳回 。

IModel.FindEntityType(String, String, IEntityType)

取得指定名稱的實體類型,定義導覽名稱和定義實體類型。 如果找不到相符的實體類型,則傳 null 回 。

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

參數

name
String

要尋找的實體類型名稱。

definingNavigationName
String

要尋找之實體類型的定義導覽。

definingEntityType
IEntityType

要尋找之實體類型的定義實體類型。

傳回

實體類型, null 如果找不到則為 。

實作

屬性

適用於

IModel.FindEntityType(String)

取得具有指定名稱的實體。 null如果找不到具有指定名稱的實體類型,或共用類型實體類型正在使用指定的 CLR 類型,或實體類型具有定義導覽,則傳回 。

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

參數

name
String

要尋找的實體類型名稱。

傳回

實體類型, null 如果找不到則為 。

實作

屬性

適用於

IModel.FindEntityType(Type)

取得對應指定實體類別的實體。 null如果找不到具有指定 CLR 類型的實體類型,或共用類型實體類型正在使用指定的 CLR 類型,或實體類型具有定義導覽,則傳回 。

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

參數

type
Type

要為其尋找對應實體類型的類型。

傳回

實體類型, null 如果找不到則為 。

實作

屬性

適用於