src/Shared/EntityFramework/Core/Mapping/Update/Internal/KeyManager.cs
// <summary>
// Creates identifier for a (non-key) entity member (or return existing identifier).
// </summary>
Creates identifier for a (non-key) entity member (or return existing identifier).
Creates identifier for a ( non - key ) entity member ( or return existing identifier ) .
internal int GetKeyIdentifierForMember(EntityKey entityKey, string member, bool currentValues)
        {
            int result;
            var position = Tuple.Create(entityKey, member, currentValues);
            if (!_foreignKeyIdentifiers.TryGetValue(position, out result))
            {
                result = _identifiers.Count;
                _identifiers.Add(new IdentifierInfo());
                _foreignKeyIdentifiers.Add(position, result);
            }
            return result;
        }
internal int GetKeyIdentifierForMember ( EntityKey entityKey , string member , bool currentValues ) { int result ; var position = Tuple . Create ( entityKey , member , currentValues ) ; if ( ! _foreignKeyIdentifiers . TryGetValue ( position , out result ) ) { result = _identifiers . Count ; _identifiers . Add ( new IdentifierInfo ( ) ) ; _foreignKeyIdentifiers . Add ( position , result ) ; } return result ; }
Creates identifier for a (non-key) entity member (or return existing identifier).
Creates identifier for a ( non - key ) entity member ( or return existing identifier ) .
entityKey
EntityKey
member
string
currentValues
bool