ConventionModelExtensions.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(IConventionModel, String) |
Removes an entity type without a defining navigation from the model. |
RemoveEntityType(IConventionModel, Type) |
Removes an entity type from the model. |
RemoveEntityType(IConventionModel, String, String, IConventionEntityType) |
Removes an entity type with a defining navigation from the model. |
RemoveEntityType(IConventionModel, Type, String, IConventionEntityType) |
Removes an entity type with a defining navigation from the model. |
RemoveEntityType(IConventionModel, String)
Removes an entity type without a defining navigation from the model.
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
Parameters
- model
- IConventionModel
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(IConventionModel, Type)
Removes an entity type from the model.
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
Parameters
- model
- IConventionModel
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(IConventionModel, String, String, IConventionEntityType)
Removes an entity type with a defining navigation from the model.
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
Parameters
- model
- IConventionModel
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
- IConventionEntityType
The defining entity type.
Returns
The entity type that was removed.
Applies to
RemoveEntityType(IConventionModel, Type, String, IConventionEntityType)
Removes an entity type with a defining navigation from the model.
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
Parameters
- model
- IConventionModel
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
- IConventionEntityType
The defining entity type.
Returns
The entity type that was removed.
Applies to
Entity Framework