Delen via


MutableModelExtensions.RemoveOwned(IMutableModel, Type) Method

Definition

Removes the given owned type, indicating that when discovered matching entity types should not be configured as owned.

public static void RemoveOwned (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, Type clrType);
public static string RemoveOwned (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, Type type);
static member RemoveOwned : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * Type -> unit
static member RemoveOwned : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * Type -> string
<Extension()>
Public Sub RemoveOwned (model As IMutableModel, clrType As Type)
<Extension()>
Public Function RemoveOwned (model As IMutableModel, type As Type) As String

Parameters

model
IMutableModel

The model to remove the owned type name from.

clrTypetype
Type

The type of the entity type that should not be owned.

Returns

The name of the removed owned type.

Applies to