ConventionModelExtensions.IsOwned(IConventionModel, Type) Method

Definition

Returns a value indicating whether the entity types using the given type should be configured as owned types when discovered.

C#
public static bool IsOwned (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, Type clrType);
C#
public static bool IsOwned (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, Type type);

Parameters

model
IConventionModel

The model.

clrTypetype
Type

The type of the entity type that could be owned.

Returns

true if the given type name is marked as owned, null otherwise.

Applies to

Toode Versioonid
Entity Framework Core 3.0, 3.1, 5.0