6 writes to _compositeKeyValues
System.Data.Entity (6)
System\Data\EntityKey.cs (6)
108CheckKeyValues(entityKeyValues, out _keyNames, out _singletonKeyValue, out _compositeKeyValues); 122CheckKeyValues(new KeyValueReader(entityKeyValues), out _keyNames, out _singletonKeyValue, out _compositeKeyValues); 168GetKeyValues(entitySet, record, out _keyNames, out _singletonKeyValue, out _compositeKeyValues); 233_compositeKeyValues = compositeKeyValues; 321if (!CheckKeyValues(new KeyValueReader(value), true, true, out _keyNames, out _singletonKeyValue, out _compositeKeyValues)) 1272if (CheckKeyValues(new KeyValueReader(_deserializedMembers), true, true, out _keyNames, out _singletonKeyValue, out _compositeKeyValues))
39 references to _compositeKeyValues
System.Data.Entity (39)
System\Data\EntityKey.cs (39)
303keyValues = new EntityKeyMember[_compositeKeyValues.Length]; 304for (int i = 0; i < _compositeKeyValues.Length; ++i) 306keyValues[i] = new EntityKeyMember(_keyNames[i], _compositeKeyValues[i]); 362return _compositeKeyValues; 444else if (null != _compositeKeyValues) 446for (int i = 0, n = _compositeKeyValues.Length; i < n; i++) 448hashCode = AddHashValue(hashCode, _compositeKeyValues[i]); 460(_singletonKeyValue != null || _compositeKeyValues != null))) 593if (null != key1._compositeKeyValues && null != key2._compositeKeyValues && key1._compositeKeyValues.Length == key2._compositeKeyValues.Length) 631for (int i = 0; i < key1._compositeKeyValues.Length; ++i) 635if (!ByValueEqualityComparer.Default.Equals(key1._compositeKeyValues[i], key2._compositeKeyValues[i])) 642else if (!ValuesWithBinaryEqual(key1._keyNames[i], key1._compositeKeyValues[i], key2)) 656return ByValueEqualityComparer.Default.Equals(keyValue, key2._compositeKeyValues[i]); 664for (int i = 0; i < key1._compositeKeyValues.Length; ++i) 668if (!Object.Equals(key1._compositeKeyValues[i], key2._compositeKeyValues[i])) 675else if (!ValuesEqual(key1._keyNames[i], key1._compositeKeyValues[i], key2)) 689return Object.Equals(keyValue, key2._compositeKeyValues[i]); 720numKeyMembers = _compositeKeyValues.Length; 752keyColumns = new KeyValuePair<string, DbExpression>[_compositeKeyValues.Length]; 753for (int i = 0; i < _compositeKeyValues.Length; ++i) 755Debug.Assert(_compositeKeyValues[i] != null, "Values within key-value pairs cannot be null."); 759keyColumns[i] = DbExpressionBuilder.Constant(Helper.GetModelTypeUsage(keyMember), _compositeKeyValues[i]).As(keyMember.Name); 1037else if (null != _compositeKeyValues) 1040if (keyMembers.Count != _compositeKeyValues.Length) 1044throw EntityUtil.IncorrectNumberOfKeyValuePairs(argumentName, entitySet.ElementType.FullName, keyMembers.Count, _compositeKeyValues.Length); 1048throw EntityUtil.IncorrectNumberOfKeyValuePairsInvalidOperation(entitySet.ElementType.FullName, keyMembers.Count, _compositeKeyValues.Length); 1052for (int i = 0; i < _compositeKeyValues.Length; ++i) 1056for (int j = 0; j < _compositeKeyValues.Length; ++j) 1061ValidateTypeOfKeyValue(workspace, keyField, _compositeKeyValues[j], isArgumentException, argumentName); 1161Debug.Assert(_compositeKeyValues == null, "The EntityKey is marked as both a singleton key and a composite key - this is illegal."); 1167else if (_compositeKeyValues != null) 1173Debug.Assert(entitySet.ElementType.KeyMembers.Count == _compositeKeyValues.Length, "Incorrect number of values specified to composite key."); 1175for (int i = 0; i < _compositeKeyValues.Length; ++i) 1177Debug.Assert(_compositeKeyValues[i] != null, "Values passed to a composite EntityKey cannot be null.");