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