26 references to Key
System.Data.Common (26)
System\Data\ConstraintCollection.cs (3)
522
if ((null != constraint) && CompareArrays(constraint.
Key
.ColumnsReference, columns))
539
if ((null != constraint) && (constraint.
Key
.ColumnsReference.Length == 1) && (constraint.
Key
.ColumnsReference[0] == column))
System\Data\DataColumnCollection.cs (1)
477
if (_table._primaryKey != null && _table._primaryKey.
Key
.ContainsColumn(column))
System\Data\DataTable.cs (9)
1637
return primayKeyConstraint.
Key
.ToArray();
1693
key!.ColumnsReference.CopyTo(existingKey.
Key
.ColumnsReference, 0);
1731
_primaryIndex = (key != null) ? key.
Key
.GetIndexDesc() : Array.Empty<IndexField>();
3038
return FindRow(_primaryKey!.
Key
, values);
3044
return FindRow(_primaryKey!.
Key
, value);
4621
_loadIndex = _primaryKey.
Key
.GetSortIndex(DataViewRowState.OriginalRows);
4757
_loadIndexwithCurrentDeleted = _primaryKey.
Key
.GetSortIndex(DataViewRowState.CurrentRows | DataViewRowState.Deleted);
4768
_loadIndexwithOriginalAdded = _primaryKey.
Key
.GetSortIndex(DataViewRowState.OriginalRows | DataViewRowState.Added);
4799
index = _primaryKey.
Key
.GetSortIndex(DataViewRowState.OriginalRows);
System\Data\Merger.cs (4)
209
ndxSearch = dst._primaryKey.
Key
.GetSortIndex(DataViewRowState.OriginalRows | DataViewRowState.Added);
283
ndxSearch = new Index(dst, dst._primaryKey!.
Key
.GetIndexDesc(), DataViewRowState.OriginalRows | DataViewRowState.Added, null);
630
return src._primaryKey.
Key
;
636
DataColumn[] dstColumns = dst._primaryKey.
Key
.ColumnsReference;
System\Data\UniqueConstraint.cs (2)
397
return
Key
.ColumnsEqual(((UniqueConstraint)key2).
Key
);
System\Data\xmlsaver.cs (7)
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;
1677
if (unique.
Key
.ColumnsReference.Length != 1)
1681
return AutoGenerated(unique.
Key
.ColumnsReference[0]);
2007
fields = unique.
Key
.ColumnsReference;