IConventionModel.RemoveEntityType Method

Definition

Overloads

RemoveEntityType(IConventionEntityType)

Removes an entity type from the model.

RemoveEntityType(String)

Removes an entity type without a defining navigation from the model.

RemoveEntityType(Type)

Removes an entity type from the model.

RemoveEntityType(String, String, IConventionEntityType)

Removes an entity type with the given type, defining navigation name and the defining entity type.

RemoveEntityType(Type, String, IConventionEntityType)

Removes an entity type with the given type, defining navigation name and the defining entity type.

RemoveEntityType(IConventionEntityType)

Removes an entity type from the model.

public void RemoveEntityType (Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType);
public Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType RemoveEntityType (Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType);
public Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType? RemoveEntityType (Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType);
abstract member RemoveEntityType : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType -> unit
abstract member RemoveEntityType : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType -> Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType
Public Sub RemoveEntityType (entityType As IConventionEntityType)
Public Function RemoveEntityType (entityType As IConventionEntityType) As IConventionEntityType

Parameters

entityType
IConventionEntityType

The entity type to be removed.

Returns

The removed entity type, or null if the entity type was not found.

Applies to

RemoveEntityType(String)

Removes an entity type without a defining navigation from the model.

public Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType? RemoveEntityType (string name);
abstract member RemoveEntityType : string -> Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType
Public Function RemoveEntityType (name As String) As IConventionEntityType

Parameters

name
String

The name of the entity type to be removed.

Returns

The entity type that was removed.

Applies to

RemoveEntityType(Type)

Removes an entity type from the model.

public Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType? RemoveEntityType (Type type);
abstract member RemoveEntityType : Type -> Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType
Public Function RemoveEntityType (type As Type) As IConventionEntityType

Parameters

type
Type

The entity type to be removed.

Returns

The entity type that was removed.

Applies to

RemoveEntityType(String, String, IConventionEntityType)

Removes an entity type with the given type, defining navigation name and the defining entity type.

public Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType? RemoveEntityType (string name, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType definingEntityType);
abstract member RemoveEntityType : string * string * Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType -> Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType
Public Function RemoveEntityType (name As String, definingNavigationName As String, definingEntityType As IConventionEntityType) As IConventionEntityType

Parameters

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(Type, String, IConventionEntityType)

Removes an entity type with the given type, defining navigation name and the defining entity type.

public Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType? RemoveEntityType (Type type, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType definingEntityType);
abstract member RemoveEntityType : Type * string * Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType -> Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType
Public Function RemoveEntityType (type As Type, definingNavigationName As String, definingEntityType As IConventionEntityType) As IConventionEntityType

Parameters

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