System\Data\EntityKey.cs (24)
141_keyNames[0] = keyName;
299new EntityKeyMember(_keyNames[0], _singletonKeyValue) };
306keyValues[i] = new EntityKeyMember(_keyNames[i], _compositeKeyValues[i]);
318ValidateWritable(_keyNames);
582if (!String.Equals(key1._keyNames[0], key2._keyNames[0]))
633if (key1._keyNames[i].Equals(key2._keyNames[i]))
642else if (!ValuesWithBinaryEqual(key1._keyNames[i], key1._compositeKeyValues[i], key2))
652for (int i = 0; i < key2._keyNames.Length; i++)
654if (String.Equals(keyName, key2._keyNames[i]))
666if (key1._keyNames[i].Equals(key2._keyNames[i]))
675else if (!ValuesEqual(key1._keyNames[i], key1._compositeKeyValues[i], key2))
685for (int i = 0; i < key2._keyNames.Length; i++)
687if (String.Equals(keyName, key2._keyNames[i]))
795Debug.Assert(_keyNames[0] == keyName, "For a singleton key, the given keyName must match.");
803if (keyName == _keyNames[i])
1025if (_keyNames[0] != keyMembers[0].Name)
1058if (keyField.Name == _keyNames[j])
1228if (_keyNames != null)
1230for (int i = 0; i < _keyNames.Length; i++)
1232_keyNames[i] = LookupSingletonName(_keyNames[i]);