ConventionModelExtensions.RemoveEntityType 方法

定义

重载

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

定义实体类型。

返回

已删除的实体类型。

适用于