Sdílet prostřednictvím


ModelValidator.IsOwned(Type, IConventionModel) Metoda

Definice

Vrátí hodnotu označující, jestli by tento cílový typ CLR odpovídal vlastněné entitě.

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

Parametry

targetType
Type

Typ cílového modulu CLR.

conventionModel
IConventionModel

Model.

Návraty

true pokud daný typ CLR odpovídá vlastněné entitě.

Platí pro