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