Condividi tramite


ModelValidator.IsOwned(Type, IConventionModel) Metodo

Definizione

Restituisce un valore che indica se il tipo CLR di destinazione corrisponde a un tipo di entità di proprietà.

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

Parametri

targetType
Type

Tipo CLR di destinazione.

conventionModel
IConventionModel

Modello.

Restituisce

true se il tipo CLR specificato corrisponde a un tipo di entità di proprietà.

Si applica a