Sprache

RelationshipDiscoveryConvention.ShouldBeOwned(Type, IConventionModel) Methode

Definition

Gibt einen Wert zurück, der angibt, ob der angegebene Entitätstyp im Besitz hinzugefügt werden soll, wenn er sich derzeit nicht im Modell befindet.

protected virtual bool? ShouldBeOwned(Type targetType, Microsoft.EntityFrameworkCore.Metadata.IConventionModel model);
abstract member ShouldBeOwned : Type * Microsoft.EntityFrameworkCore.Metadata.IConventionModel -> Nullable<bool>
override this.ShouldBeOwned : Type * Microsoft.EntityFrameworkCore.Metadata.IConventionModel -> Nullable<bool>
Protected Overridable Function ShouldBeOwned (targetType As Type, model As IConventionModel) As Nullable(Of Boolean)

Parameter

targetType
Type

Zielentitätstyp.

model
IConventionModel

Das Modell.

Gibt zurück

true wenn der angegebene Entitätstyp im Besitz sein soll.

Gilt für: