Freigeben über


CosmosRelationshipDiscoveryConvention.ShouldBeOwnedType Methode

Definition

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

public static bool ShouldBeOwnedType (Type targetType, Microsoft.EntityFrameworkCore.Metadata.IConventionModel model);
static member ShouldBeOwnedType : Type * Microsoft.EntityFrameworkCore.Metadata.IConventionModel -> bool
Public Shared Function ShouldBeOwnedType (targetType As Type, model As IConventionModel) As 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: