RelationshipDiscoveryConvention.ShouldBeOwned(Type, IConventionModel) Metoda

Definicja

Zwraca wartość wskazującą, czy dany typ jednostki powinien zostać dodany jako właściciel, jeśli nie znajduje się obecnie w modelu.

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)

Parametry

targetType
Type

Typ jednostki docelowej.

model
IConventionModel

Model.

Zwraca

true jeśli dany typ jednostki powinien być własnością.

Dotyczy