Table of Contents

Method ShouldBeOwned

Namespace
MongoDB.EntityFrameworkCore.Metadata.Conventions
Assembly
MongoDB.EntityFrameworkCore.dll

ShouldBeOwned(Type, IConventionModel)

Returns a value indicating whether the given entity type should be added as owned if it isn't currently in the model.

protected override bool? ShouldBeOwned(Type targetType, IConventionModel model)

Parameters

targetType Type

Target entity type.

model IConventionModel

The model.

Returns

bool?

true if the given entity type should be owned.