src/Shared/EntityFramework/Core/Objects/DataClasses/EntityReference.cs
// <summary> Updates the foreign key if this is the dependent end of the relationship. </summary>
// <returns> true if they key was updated; otherwise, false.</returns>
// <param name="targetRelatedEnd">The target related end.</param>
// <param name="forceForeignKeyChanges"> If true, then the property setter is called even if FK values already match, which causes the FK properties to be marked as modified. </param>
Updates the foreign key if this is the dependent end of the relationship.
Updates the foreign key if this is the dependent end of the relationship .
internal override bool UpdateDependentEndForeignKey(RelatedEnd targetRelatedEnd, bool forceForeignKeyChanges)
        {
            if (IsDependentEndOfReferentialConstraint(false))
            {
                UpdateForeignKeyValues(WrappedOwner, targetRelatedEnd.WrappedOwner, changedFKs: null, forceChange: forceForeignKeyChanges);
                return true;
            }
            return false;
        }
internal override bool UpdateDependentEndForeignKey ( RelatedEnd targetRelatedEnd , bool forceForeignKeyChanges ) { if ( IsDependentEndOfReferentialConstraint ( false ) ) { UpdateForeignKeyValues ( WrappedOwner , targetRelatedEnd . WrappedOwner , changedFKs : null , forceChange : forceForeignKeyChanges ) ; return true ; } return false ; }
Updates the foreign key if this is the dependent end of the relationship.
Updates the foreign key if this is the dependent end of the relationship .
true if they key was updated; otherwise, false.
true if they key was updated ; otherwise false .
targetRelatedEnd
RelatedEnd
The target related end.
The target related end .
forceForeignKeyChanges
bool
If true, then the property setter is called even if FK values already match, which causes the FK properties to be marked as modified.
If true then the property setter is called even if FK values already match which causes the FK properties to be marked as modified .