src/Shared/EntityFramework/Core/Mapping/Update/Internal/updatecommandorderer.cs
// <summary>
// Initialize foreign key object for the source of a foreign key.
// </summary>
// <param name="metadata"> Sets Metadata </param>
// <param name="record"> Record containing key value </param>
// <param name="isInsert"> Indicates whether the key value is being inserted or deleted </param>
// <param name="key"> Outputs key object </param>
// <returns> true if the record contains key values for this constraint; false otherwise </returns>
Initialize foreign key object for the source of a foreign key.
Initialize foreign key object for the source of a foreign key .
internal static bool TryCreateSourceKey(
                ReferentialConstraint metadata, PropagatorResult record, bool isInsert, out ForeignKeyValue key)
            {
                key = new ForeignKeyValue(metadata, record, false, isInsert);
                if (null == key.Key)
                {
                    return false;
                }
                return true;
            }
internal static bool TryCreateSourceKey ( ReferentialConstraint metadata , PropagatorResult record , bool isInsert , out ForeignKeyValue key ) { key = new ForeignKeyValue ( metadata , record , false , isInsert ) ; if ( null == key . Key ) { return false ; } return true ; }
Initialize foreign key object for the source of a foreign key.
Initialize foreign key object for the source of a foreign key .
true if the record contains key values for this constraint; false otherwise
true if the record contains key values for this constraint ; false otherwise
metadata
ReferentialConstraint
None
record
PropagatorResult
Record containing key value
Record containing key value
isInsert
bool
Indicates whether the key value is being inserted or deleted
Indicates whether the key value is being inserted or deleted
ForeignKeyValue
out
key
Outputs key object
Outputs key object