86 references to ColumnsReference
System.Data.Common (86)
System\Data\ConstraintCollection.cs (5)
522if ((null != constraint) && CompareArrays(constraint.Key.ColumnsReference, columns)) 539if ((null != constraint) && (constraint.Key.ColumnsReference.Length == 1) && (constraint.Key.ColumnsReference[0] == column)) 555CompareArrays(constraint.ParentKey.ColumnsReference, parentColumns) && 556CompareArrays(constraint.ChildKey.ColumnsReference, childColumns))
System\Data\DataColumn.cs (2)
1571if (key.ColumnsReference.Length == 1 && key.ColumnsReference[0] == this)
System\Data\DataRelation.cs (16)
158return _childKey.ColumnsReference; 318internal DataColumn[] ParentColumnsReference => _parentKey.ColumnsReference; 486ForeignKeyConstraint? constraint = ChildTable.Constraints.FindForeignKeyConstraint(ChildKey.ColumnsReference, ParentKey.ColumnsReference); 491if (!value && (_parentKey.ColumnsReference[0].ColumnMapping == MappingType.Hidden)) 651for (int i = 0; i < _parentKey.ColumnsReference.Length; i++) 653if ((_parentKey.ColumnsReference[i].DataType != _childKey.ColumnsReference[i].DataType) || 654((_parentKey.ColumnsReference[i].DataType == typeof(DateTime)) && 655(_parentKey.ColumnsReference[i].DateTimeMode != _childKey.ColumnsReference[i].DateTimeMode) && 656((_parentKey.ColumnsReference[i].DateTimeMode & _childKey.ColumnsReference[i].DateTimeMode) != DataSetDateTime.Unspecified))) 720int keyLength = _parentKey.ColumnsReference.Length; 727parentColumns[i] = parent.Columns[ParentKey.ColumnsReference[i].ColumnName]!; 728childColumns[i] = child.Columns[ChildKey.ColumnsReference[i].ColumnName]!;
System\Data\DataRow.cs (2)
1243object value = this[key.ColumnsReference[i]]; 1251this[key.ColumnsReference[i]] = keyValues[i];
System\Data\DataTable.cs (2)
1693key!.ColumnsReference.CopyTo(existingKey.Key.ColumnsReference, 0); 2126key.ColumnsReference[i][record] = keyValues[i];
System\Data\ForeignKeyConstraint.cs (20)
314object[] proposedKey = new object[_childKey.ColumnsReference.Length]; 315for (int i = 0; i < _childKey.ColumnsReference.Length; i++) 333object[] proposedKey = new object[_childKey.ColumnsReference.Length]; 334for (int i = 0; i < _childKey.ColumnsReference.Length; i++) 335proposedKey[i] = _childKey.ColumnsReference[i].DefaultValue; 454object[] proposedKey = new object[_childKey.ColumnsReference.Length]; 455for (int i = 0; i < _childKey.ColumnsReference.Length; i++) 472object[] proposedKey = new object[_childKey.ColumnsReference.Length]; 473for (int i = 0; i < _childKey.ColumnsReference.Length; i++) 474proposedKey[i] = _childKey.ColumnsReference[i].DefaultValue; 605DataColumn column = _parentKey.ColumnsReference[lo]; 636for (int i = 0; i < _parentKey.ColumnsReference.Length; i++) 638if (_parentKey.ColumnsReference[i].DataType != _childKey.ColumnsReference[i].DataType || 639((_parentKey.ColumnsReference[i].DataType == typeof(DateTime)) && (_parentKey.ColumnsReference[i].DateTimeMode != _childKey.ColumnsReference[i].DateTimeMode) && ((_parentKey.ColumnsReference[i].DateTimeMode & _childKey.ColumnsReference[i].DateTimeMode) != DataSetDateTime.Unspecified))) 889return _parentKey.ColumnsReference;
System\Data\Merger.cs (13)
536if (relation.ParentKey.ColumnsReference.Length != destRelation.ParentKey.ColumnsReference.Length) 542for (int i = 0; i < relation.ParentKey.ColumnsReference.Length; i++) 544DataColumn dest = destRelation.ParentKey.ColumnsReference[i]; 545DataColumn src = relation.ParentKey.ColumnsReference[i]; 554dest = destRelation.ChildKey.ColumnsReference[i]; 555src = relation.ChildKey.ColumnsReference[i]; 578DataColumn[] parentColumns = new DataColumn[relation.ParentKey.ColumnsReference.Length]; 579DataColumn[] childColumns = new DataColumn[relation.ParentKey.ColumnsReference.Length]; 580for (int i = 0; i < relation.ParentKey.ColumnsReference.Length; i++) 582parentColumns[i] = parent.Columns[relation.ParentKey.ColumnsReference[i].ColumnName]!; 583childColumns[i] = child.Columns[relation.ChildKey.ColumnsReference[i].ColumnName]!; 636DataColumn[] dstColumns = dst._primaryKey.Key.ColumnsReference;
System\Data\RecordManager.cs (1)
199key.ColumnsReference[i][record] = keyValues[i];
System\Data\RelatedView.cs (6)
106return (CompareArray(_childKey.ColumnsReference, other._childKey.ColumnsReference) && CompareArray(_filterValues, other._filterValues)); 115return (CompareArray(_childKey.ColumnsReference, other._childKey.ColumnsReference) && 116CompareArray(_parentKey!.Value.ColumnsReference, _parentKey.Value.ColumnsReference) &&
System\Data\UniqueConstraint.cs (6)
148Debug.Assert(DataKey.ColumnsEqual(_key.ColumnsReference, sortIndexColumns), "UniqueConstraint index columns do not match the key sort index"); 232string error = ExceptionBuilder.UniqueConstraintViolationText(_key.ColumnsReference, (object[])uniqueKeys[i]); 236foreach (DataColumn dataColumn in _key.ColumnsReference) 356return _key.ColumnsReference; 410if (_key.ColumnsReference.Length == 1) 412_key.ColumnsReference[0].InternalUnique(value);
System\Data\xmlsaver.cs (11)
460if (_autogenerated[_constraint.Key.ColumnsReference[0]] != null) 461_autogenerated[_constraint.Key.ColumnsReference[0]] = null; 471if (_autogenerated[unique.Key.ColumnsReference[0]] != null) 472_autogenerated[unique.Key.ColumnsReference[0]] = null; 1170DataColumn[] key = rel.ParentKey.ColumnsReference; 1186key = rel.ChildKey.ColumnsReference; 1677if (unique.Key.ColumnsReference.Length != 1) 1681return AutoGenerated(unique.Key.ColumnsReference[0]); 1809if (childRelations[j].Nested && childRelations[j].ParentKey.ColumnsReference.Length == 1 && childRelations[j].ParentKey.ColumnsReference[0] == col) 2007fields = unique.Key.ColumnsReference;
System\Xml\XmlDataDocument.cs (2)
1712DataColumn[] columns = relation.ChildKey.ColumnsReference; 1716return relation.ParentKey.ColumnsReference[i];