MutableModelExtensions.RemoveEntityType Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
RemoveEntityType(IMutableModel, IMutableEntityType) |
Removes an entity type from the model. |
RemoveEntityType(IMutableModel, String) |
Removes an entity type without a defining navigation from the model. |
RemoveEntityType(IMutableModel, Type) |
Removes an entity type from the model. |
RemoveEntityType(IMutableModel, String, String, IMutableEntityType) |
Removes an entity type with a defining navigation from the model. |
RemoveEntityType(IMutableModel, Type, String, IMutableEntityType) |
Removes an entity type with a defining navigation from the model. |
RemoveEntityType(IMutableModel, IMutableEntityType)
Removes an entity type from the model.
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
Parameters
- model
- IMutableModel
The model to remove the entity type from.
- entityType
- IMutableEntityType
The entity type to be removed.
Returns
The entity type that was removed.
Applies to
RemoveEntityType(IMutableModel, String)
Removes an entity type without a defining navigation from the model.
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
Parameters
- model
- IMutableModel
The model to remove the entity type from.
- name
- String
The name of the entity type to be removed.
Returns
The entity type that was removed.
Applies to
RemoveEntityType(IMutableModel, Type)
Removes an entity type from the model.
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
Parameters
- model
- IMutableModel
The model to remove the entity type from.
- type
- Type
The entity type to be removed.
Returns
The entity type that was removed.
Applies to
RemoveEntityType(IMutableModel, String, String, IMutableEntityType)
Removes an entity type with a defining navigation from the model.
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
Parameters
- model
- IMutableModel
The model to remove the entity type from.
- name
- String
The name of the entity type to be removed.
- definingNavigationName
- String
The defining navigation.
- definingEntityType
- IMutableEntityType
The defining entity type.
Returns
The entity type that was removed.
Applies to
RemoveEntityType(IMutableModel, Type, String, IMutableEntityType)
Removes an entity type with a defining navigation from the model.
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
Parameters
- model
- IMutableModel
The model to remove the entity type from.
- type
- Type
The CLR class that is used to represent instances of this entity type.
- definingNavigationName
- String
The defining navigation.
- definingEntityType
- IMutableEntityType
The defining entity type.
Returns
The entity type that was removed.
Applies to
Entity Framework