IMutableModel.RemoveEntityType 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
RemoveEntityType(String) |
移除實體類型,而不定義模型中的導覽。 |
RemoveEntityType(Type, String, IMutableEntityType) |
移除具有指定型別的實體類型、定義導覽名稱和定義實體類型 |
RemoveEntityType(String, String, IMutableEntityType) |
移除具有指定型別的實體類型、定義導覽名稱和定義實體類型 |
RemoveEntityType(IMutableEntityType) |
從模型中移除實體類型。 |
RemoveEntityType(Type) |
從模型中移除實體類型。 |
RemoveEntityType(String)
移除實體類型,而不定義模型中的導覽。
public Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType RemoveEntityType (string name);
public Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType? RemoveEntityType (string name);
abstract member RemoveEntityType : string -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
Public Function RemoveEntityType (name As String) As IMutableEntityType
參數
- name
- String
要移除的實體類型名稱。
傳回
已移除的實體類型。
適用於
RemoveEntityType(Type, String, IMutableEntityType)
移除具有指定型別的實體類型、定義導覽名稱和定義實體類型
public Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType? RemoveEntityType (Type type, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType definingEntityType);
abstract member RemoveEntityType : Type * string * Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
Public Function RemoveEntityType (type As Type, definingNavigationName As String, definingEntityType As IMutableEntityType) As IMutableEntityType
參數
- type
- Type
用來表示此實體類型的實例的 CLR 類別。
- definingNavigationName
- String
定義導覽。
- definingEntityType
- IMutableEntityType
定義實體類型。
傳回
已移除的實體類型。
適用於
RemoveEntityType(String, String, IMutableEntityType)
移除具有指定型別的實體類型、定義導覽名稱和定義實體類型
public Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType RemoveEntityType (string name, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType definingEntityType);
public Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType? RemoveEntityType (string name, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType definingEntityType);
abstract member RemoveEntityType : string * string * Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
Public Function RemoveEntityType (name As String, definingNavigationName As String, definingEntityType As IMutableEntityType) As IMutableEntityType
參數
- name
- String
要移除的實體類型名稱。
- definingNavigationName
- String
定義導覽。
- definingEntityType
- IMutableEntityType
定義實體類型。
傳回
已移除的實體類型。
適用於
RemoveEntityType(IMutableEntityType)
從模型中移除實體類型。
public void RemoveEntityType (Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType);
public Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType RemoveEntityType (Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType);
public Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType? RemoveEntityType (Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType);
abstract member RemoveEntityType : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType -> unit
abstract member RemoveEntityType : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
Public Sub RemoveEntityType (entityType As IMutableEntityType)
Public Function RemoveEntityType (entityType As IMutableEntityType) As IMutableEntityType
參數
- entityType
- IMutableEntityType
要移除的實體類型。
傳回
已移除的實體類型,如果找不到實體類型,則 null
為 。
適用於
RemoveEntityType(Type)
從模型中移除實體類型。
public Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType? RemoveEntityType (Type type);
abstract member RemoveEntityType : Type -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
Public Function RemoveEntityType (type As Type) As IMutableEntityType
參數
- type
- Type
要移除的實體類型。
傳回
已移除的實體類型。