MutableModelExtensions.RemoveEntityType 方法

定义

重载

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

定义实体类型。

返回

已删除的实体类型。

适用于