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
定义实体类型。
返回
已删除的实体类型。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈