Språk

IReadOnlyForeignKey.IsEffectivelyRequired Method

Definition

Returns a value indicating whether a set value for this foreign key is guaranteed to reference an existing principal — that is, the relationship is both required (IsRequired) and constrained (IsConstrained). Query consults this to decide whether a dependent-to-principal navigation can be expanded with an inner join (and whether such a join can be pruned); an unconstrained relationship is always treated as optional even when its foreign key properties are non-nullable.

public virtual bool IsEffectivelyRequired();
abstract member IsEffectivelyRequired : unit -> bool
override this.IsEffectivelyRequired : unit -> bool
Public Overridable Function IsEffectivelyRequired () As Boolean

Returns

true if the relationship is both required and constrained.

Applies to