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