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