86 references to ColumnsReference
System.Data (86)
fx\src\data\System\Data\ConstraintCollection.cs (5)
471
if ((null != constraint) && CompareArrays(constraint.Key.
ColumnsReference
, columns)) {
485
if ((null != constraint) && (constraint.Key.
ColumnsReference
.Length == 1) && (constraint.Key.
ColumnsReference
[0] == column))
499
CompareArrays(constraint.ParentKey.
ColumnsReference
, parentColumns) &&
500
CompareArrays(constraint.ChildKey.
ColumnsReference
, childColumns))
fx\src\data\System\Data\DataColumn.cs (2)
1526
if (key.
ColumnsReference
.Length == 1 && key.
ColumnsReference
[0] == this) {
fx\src\data\System\Data\DataRelation.cs (16)
181
return childKey.
ColumnsReference
;
330
return parentKey.
ColumnsReference
;
483
ForeignKeyConstraint constraint = ChildTable.Constraints.FindForeignKeyConstraint(ChildKey.
ColumnsReference
, ParentKey.
ColumnsReference
);
490
if (!value && (parentKey.
ColumnsReference
[0].ColumnMapping == MappingType.Hidden))
640
for (int i = 0; i < parentKey.
ColumnsReference
.Length; i++) {
641
if ((parentKey.
ColumnsReference
[i].DataType != childKey.
ColumnsReference
[i].DataType) ||
642
((parentKey.
ColumnsReference
[i].DataType == typeof(DateTime)) &&
643
(parentKey.
ColumnsReference
[i].DateTimeMode != childKey.
ColumnsReference
[i].DateTimeMode) &&
644
((parentKey.
ColumnsReference
[i].DateTimeMode & childKey.
ColumnsReference
[i].DateTimeMode) != DataSetDateTime.Unspecified)))
700
int keyLength = parentKey.
ColumnsReference
.Length;
706
parentColumns[i] = parent.Columns[ParentKey.
ColumnsReference
[i].ColumnName];
707
childColumns[i] = child.Columns[ChildKey.
ColumnsReference
[i].ColumnName];
fx\src\data\System\Data\DataRow.cs (2)
1137
object value = this[key.
ColumnsReference
[i]];
1143
this[key.
ColumnsReference
[i]] = keyValues[i];
fx\src\data\System\Data\DataTable.cs (2)
1575
key.ColumnsReference.CopyTo(existingKey.Key.
ColumnsReference
, 0);
1977
key.
ColumnsReference
[i][record] = keyValues[i];
fx\src\data\System\Data\ForeignKeyConstraint.cs (20)
304
object[] proposedKey = new object[childKey.
ColumnsReference
.Length];
305
for (int i = 0; i < childKey.
ColumnsReference
.Length; i++)
320
object[] proposedKey = new object[childKey.
ColumnsReference
.Length];
321
for (int i = 0; i < childKey.
ColumnsReference
.Length; i++)
322
proposedKey[i] = childKey.
ColumnsReference
[i].DefaultValue;
415
object[] proposedKey = new object[childKey.
ColumnsReference
.Length];
416
for (int i = 0; i < childKey.
ColumnsReference
.Length; i++)
430
object[] proposedKey = new object[childKey.
ColumnsReference
.Length];
431
for (int i = 0; i < childKey.
ColumnsReference
.Length; i++)
432
proposedKey[i] = childKey.
ColumnsReference
[i].DefaultValue;
533
DataColumn column = parentKey.
ColumnsReference
[lo];
559
for (int i = 0; i < parentKey.
ColumnsReference
.Length; i++) {
560
if (parentKey.
ColumnsReference
[i].DataType != childKey.
ColumnsReference
[i].DataType ||
561
((parentKey.
ColumnsReference
[i].DataType == typeof(DateTime)) && (parentKey.
ColumnsReference
[i].DateTimeMode != childKey.
ColumnsReference
[i].DateTimeMode) && ((parentKey.
ColumnsReference
[i].DateTimeMode & childKey.
ColumnsReference
[i].DateTimeMode) != DataSetDateTime.Unspecified)))
795
return parentKey.
ColumnsReference
;
fx\src\data\System\Data\Merger.cs (13)
446
if (relation.ParentKey.
ColumnsReference
.Length != destRelation.ParentKey.
ColumnsReference
.Length) {
452
for (int i = 0; i < relation.ParentKey.
ColumnsReference
.Length; i++) {
453
DataColumn dest = destRelation.ParentKey.
ColumnsReference
[i];
454
DataColumn src = relation.ParentKey.
ColumnsReference
[i];
463
dest = destRelation.ChildKey.
ColumnsReference
[i];
464
src = relation.ChildKey.
ColumnsReference
[i];
498
DataColumn[] parentColumns = new DataColumn[relation.ParentKey.
ColumnsReference
.Length];
499
DataColumn[] childColumns = new DataColumn[relation.ParentKey.
ColumnsReference
.Length];
500
for (int i = 0; i < relation.ParentKey.
ColumnsReference
.Length; i++) {
501
parentColumns[i] = parent.Columns[relation.ParentKey.
ColumnsReference
[i].ColumnName];
502
childColumns[i] = child.Columns[relation.ChildKey.
ColumnsReference
[i].ColumnName];
547
DataColumn[] dstColumns = dst.primaryKey.Key.
ColumnsReference
;
fx\src\data\System\Data\RecordManager.cs (1)
175
key.
ColumnsReference
[i][record] = keyValues[i];
fx\src\data\System\Data\RelatedView.cs (6)
116
return (CompareArray(this.childKey.
ColumnsReference
, other.childKey.
ColumnsReference
) && CompareArray(this.filterValues, other.filterValues));
121
return (CompareArray(this.childKey.
ColumnsReference
, other.childKey.
ColumnsReference
) &&
122
CompareArray(this.parentKey.Value.
ColumnsReference
, this.parentKey.Value.
ColumnsReference
) &&
fx\src\data\System\Data\UniqueConstraint.cs (6)
148
Debug.Assert(DataKey.ColumnsEqual(key.
ColumnsReference
, sortIndexColumns), "UniqueConstraint index columns do not match the key sort index");
219
string error = ExceptionBuilder.UniqueConstraintViolationText(key.
ColumnsReference
, (object[])uniqueKeys[i]);
223
foreach(DataColumn dataColumn in key.
ColumnsReference
){
329
return key.
ColumnsReference
;
379
if (key.
ColumnsReference
.Length == 1) {
380
key.
ColumnsReference
[0].InternalUnique(value);
fx\src\data\System\Data\xmlsaver.cs (11)
398
if(autogenerated[_constraint.Key.
ColumnsReference
[0]] != null)
399
autogenerated[_constraint.Key.
ColumnsReference
[0]] = null;
407
if (autogenerated[unique.Key.
ColumnsReference
[0]] != null)
408
autogenerated[unique.Key.
ColumnsReference
[0]] = null;
986
DataColumn[] key = rel.ParentKey.
ColumnsReference
;
1000
key = rel.ChildKey.
ColumnsReference
;
1425
if (unique.Key.
ColumnsReference
.Length !=1)
1429
return AutoGenerated(unique.Key.
ColumnsReference
[0]);
1538
if (childRelations[j].Nested && childRelations[j].ParentKey.
ColumnsReference
.Length == 1 && childRelations[j].ParentKey.
ColumnsReference
[0] == col)
1725
fields = unique.Key.
ColumnsReference
;
fx\src\data\System\NewXml\XmlDataDocument.cs (2)
1527
DataColumn[] columns = relation.ChildKey.
ColumnsReference
;
1530
return relation.ParentKey.
ColumnsReference
[i];