RuntimeModel.IModel.FindEntityType 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
IModel.FindEntityType(String, String, IEntityType) |
取得指定名稱的實體類型,定義導覽名稱和定義實體類型。 如果找不到相符的實體類型,則傳 |
IModel.FindEntityType(String) |
取得具有指定名稱的實體。 |
IModel.FindEntityType(Type) |
取得對應指定實體類別的實體。 |
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
如果找不到則為 。
實作
- 屬性
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應