IMutableModel.RemoveEntityType 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| RemoveEntityType(Type, String, IMutableEntityType) |
删除具有给定类型的实体类型、定义导航名称和定义实体类型 |
| RemoveEntityType(String, String, IMutableEntityType) |
删除具有给定类型的实体类型、定义导航名称和定义实体类型 |
| RemoveEntityType(String) |
删除实体类型,而无需从模型定义导航。 |
| RemoveEntityType(IMutableEntityType) |
从模型中删除实体类型。 |
| RemoveEntityType(Type) |
从模型中删除实体类型。 |
RemoveEntityType(Type, String, IMutableEntityType)
- Source:
- IMutableModel.cs
- Source:
- IMutableModel.cs
- Source:
- IMutableModel.cs
- Source:
- IMutableModel.cs
- Source:
- IMutableModel.cs
- Source:
- IMutableModel.cs
删除具有给定类型的实体类型、定义导航名称和定义实体类型
public Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType? RemoveEntityType(Type type, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType definingEntityType);
abstract member RemoveEntityType : Type * string * Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
Public Function RemoveEntityType (type As Type, definingNavigationName As String, definingEntityType As IMutableEntityType) As IMutableEntityType
参数
- type
- Type
用于表示此实体类型的实例的 CLR 类。
- definingNavigationName
- String
定义导航。
- definingEntityType
- IMutableEntityType
定义实体类型。
返回
已删除的实体类型。
适用于
RemoveEntityType(String, String, IMutableEntityType)
- Source:
- IMutableModel.cs
- Source:
- IMutableModel.cs
- Source:
- IMutableModel.cs
- Source:
- IMutableModel.cs
- Source:
- IMutableModel.cs
- Source:
- IMutableModel.cs
删除具有给定类型的实体类型、定义导航名称和定义实体类型
public Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType? RemoveEntityType(string name, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType definingEntityType);
public Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType RemoveEntityType(string name, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType definingEntityType);
abstract member RemoveEntityType : string * string * Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
Public Function RemoveEntityType (name As String, definingNavigationName As String, definingEntityType As IMutableEntityType) As IMutableEntityType
参数
- name
- String
要删除的实体类型的名称。
- definingNavigationName
- String
定义导航。
- definingEntityType
- IMutableEntityType
定义实体类型。
返回
已删除的实体类型。
适用于
RemoveEntityType(String)
- Source:
- IMutableModel.cs
- Source:
- IMutableModel.cs
- Source:
- IMutableModel.cs
- Source:
- IMutableModel.cs
- Source:
- IMutableModel.cs
- Source:
- IMutableModel.cs
删除实体类型,而无需从模型定义导航。
public Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType RemoveEntityType(string name);
public Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType? RemoveEntityType(string name);
abstract member RemoveEntityType : string -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
Public Function RemoveEntityType (name As String) As IMutableEntityType
参数
- name
- String
要删除的实体类型的名称。
返回
已删除的实体类型。
适用于
RemoveEntityType(IMutableEntityType)
- Source:
- IMutableModel.cs
- Source:
- IMutableModel.cs
- Source:
- IMutableModel.cs
- Source:
- IMutableModel.cs
- Source:
- IMutableModel.cs
- Source:
- IMutableModel.cs
从模型中删除实体类型。
public Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType? RemoveEntityType(Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType);
public void RemoveEntityType(Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType);
public Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType RemoveEntityType(Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType);
abstract member RemoveEntityType : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
abstract member RemoveEntityType : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType -> unit
Public Function RemoveEntityType (entityType As IMutableEntityType) As IMutableEntityType
Public Sub RemoveEntityType (entityType As IMutableEntityType)
参数
- entityType
- IMutableEntityType
要删除的实体类型。
返回
已删除的实体类型,或者 null 找不到实体类型。
适用于
RemoveEntityType(Type)
- Source:
- IMutableModel.cs
- Source:
- IMutableModel.cs
- Source:
- IMutableModel.cs
- Source:
- IMutableModel.cs
- Source:
- IMutableModel.cs
- Source:
- IMutableModel.cs
从模型中删除实体类型。
public Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType? RemoveEntityType(Type type);
abstract member RemoveEntityType : Type -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
Public Function RemoveEntityType (type As Type) As IMutableEntityType
参数
- type
- Type
要删除的实体类型。
返回
已删除的实体类型。