ConventionModelExtensions.RemoveOwned(IConventionModel, Type) Method

Definition

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

C#
public static void RemoveOwned (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, Type clrType);
C#
public static string RemoveOwned (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, Type type);

Parameters

model
IConventionModel

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

Produkt Versioner
Entity Framework Core 3.0, 3.1, 5.0