IMutableModel.RemoveEntityType Method

Definition

Overloads

RemoveEntityType(String)

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

RemoveEntityType(Type, String, IMutableEntityType)

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

RemoveEntityType(String, String, IMutableEntityType)

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

RemoveEntityType(IMutableEntityType)

Removes an entity type from the model.

RemoveEntityType(Type)

Removes an entity type from the model.

RemoveEntityType(String)

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

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

Parameters

name
String

The name of the entity type to be removed.

Returns

The entity type that was removed.

Applies to

RemoveEntityType(Type, String, IMutableEntityType)

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

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

Parameters

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

RemoveEntityType(String, String, IMutableEntityType)

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

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

Parameters

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(IMutableEntityType)

Removes an entity type from the model.

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

Parameters

entityType
IMutableEntityType

The entity type to be removed.

Returns

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

Applies to

RemoveEntityType(Type)

Removes an entity type from the model.

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

Parameters

type
Type

The entity type to be removed.

Returns

The entity type that was removed.

Applies to