Share via


ModelValidator.IsOwned(Type, IConventionModel) Method

Definition

Returns a value indicating whether that target CLR type would correspond to an owned entity type.

protected virtual bool IsOwned (Type targetType, Microsoft.EntityFrameworkCore.Metadata.IConventionModel conventionModel);
abstract member IsOwned : Type * Microsoft.EntityFrameworkCore.Metadata.IConventionModel -> bool
override this.IsOwned : Type * Microsoft.EntityFrameworkCore.Metadata.IConventionModel -> bool
Protected Overridable Function IsOwned (targetType As Type, conventionModel As IConventionModel) As Boolean

Parameters

targetType
Type

The target CLR type.

conventionModel
IConventionModel

The model.

Returns

true if the given CLR type corresponds to an owned entity type.

Applies to