RelationshipDiscoveryConvention.ShouldBeOwned(Type, IConventionModel) Metodo

Definizione

Restituisce un valore che indica se il tipo di entità specificato deve essere aggiunto come proprietà se non è attualmente presente nel modello.

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)

Parametri

targetType
Type

Tipo di entità di destinazione.

model
IConventionModel

Modello.

Restituisce

true se il tipo di entità specificato deve essere di proprietà.

Si applica a