IReadOnlyForeignKey.IsEffectivelyRequired Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before itβs released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.