IConventionModel.RemoveEntityType 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
RemoveEntityType(IConventionEntityType) |
從模型移除實體類型。 |
RemoveEntityType(String) |
從模型移除實體類型,而不定義導覽。 |
RemoveEntityType(Type) |
從模型移除實體類型。 |
RemoveEntityType(String, String, IConventionEntityType) |
移除具有指定類型的實體類型,定義導覽名稱和定義實體類型。 |
RemoveEntityType(Type, String, IConventionEntityType) |
移除具有指定類型的實體類型,定義導覽名稱和定義實體類型。 |
RemoveEntityType(IConventionEntityType)
從模型移除實體類型。
public void RemoveEntityType (Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType);
public Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType RemoveEntityType (Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType);
public Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType? RemoveEntityType (Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType);
abstract member RemoveEntityType : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType -> unit
abstract member RemoveEntityType : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType -> Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType
Public Sub RemoveEntityType (entityType As IConventionEntityType)
Public Function RemoveEntityType (entityType As IConventionEntityType) As IConventionEntityType
參數
- entityType
- IConventionEntityType
要移除的實體類型。
傳回
已移除的實體類型,如果找不到實體類型,則 null
為 。
適用於
RemoveEntityType(String)
從模型移除實體類型,而不定義導覽。
public Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType? RemoveEntityType (string name);
abstract member RemoveEntityType : string -> Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType
Public Function RemoveEntityType (name As String) As IConventionEntityType
參數
- name
- String
要移除之實體類型的名稱。
傳回
已移除的實體類型。
適用於
RemoveEntityType(Type)
從模型移除實體類型。
public Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType? RemoveEntityType (Type type);
abstract member RemoveEntityType : Type -> Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType
Public Function RemoveEntityType (type As Type) As IConventionEntityType
參數
- type
- Type
要移除的實體類型。
傳回
已移除的實體類型。
適用於
RemoveEntityType(String, String, IConventionEntityType)
移除具有指定類型的實體類型,定義導覽名稱和定義實體類型。
public Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType? RemoveEntityType (string name, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType definingEntityType);
abstract member RemoveEntityType : string * string * Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType -> Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType
Public Function RemoveEntityType (name As String, definingNavigationName As String, definingEntityType As IConventionEntityType) As IConventionEntityType
參數
- name
- String
要移除之實體類型的名稱。
- definingNavigationName
- String
定義導覽。
- definingEntityType
- IConventionEntityType
定義實體類型。
傳回
已移除的實體類型。
適用於
RemoveEntityType(Type, String, IConventionEntityType)
移除具有指定類型的實體類型,定義導覽名稱和定義實體類型。
public Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType? RemoveEntityType (Type type, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType definingEntityType);
abstract member RemoveEntityType : Type * string * Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType -> Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType
Public Function RemoveEntityType (type As Type, definingNavigationName As String, definingEntityType As IConventionEntityType) As IConventionEntityType
參數
- type
- Type
用來表示此實體類型實例的 CLR 類別。
- definingNavigationName
- String
定義導覽。
- definingEntityType
- IConventionEntityType
定義實體類型。
傳回
已移除的實體類型。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應