Freigeben über


ConventionModelExtensions.IsOwned(IConventionModel, Type) Methode

Definition

Gibt einen Wert zurück, der angibt, ob die Entitätstypen, die den angegebenen Typ verwenden, bei der Ermittlung als eigene Typen konfiguriert werden sollen.

public static bool IsOwned(this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, Type clrType);
public static bool IsOwned(this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, Type type);
static member IsOwned : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * Type -> bool
static member IsOwned : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * Type -> bool
<Extension()>
Public Function IsOwned (model As IConventionModel, clrType As Type) As Boolean
<Extension()>
Public Function IsOwned (model As IConventionModel, type As Type) As Boolean

Parameter

model
IConventionModel

Das Modell.

clrTypetype
Type

Der Typ des Entitätstyps, der im Besitz sein könnte.

Gibt zurück

true , wenn der angegebene Typname als im Besitz markiert ist, null andernfalls.

Gilt für: