1 write to _indexFields
System.Data.Common (1)
System\Data\Selection.cs (1)
123_indexFields = indexFields;
45 references to _indexFields
System.Data.Common (45)
System\Data\DataTable.cs (1)
4080foreach (IndexField field in ndx._indexFields)
System\Data\DataView.cs (9)
955if (_table != null && _index != null && _index._indexFields.Length == 1) 957return new DataColumnPropertyDescriptor(_index._indexFields[0].Column); 962ListSortDirection IBindingList.SortDirection => (_index!._indexFields.Length == 1 && _index._indexFields[0].IsDescending) ? 1126if (_table != null && _index != null && _index._indexFields.Length > 0) 1128sortDescArray = new ListSortDescription[_index._indexFields.Length]; 1129for (int i = 0; i < _index._indexFields.Length; i++) 1131DataColumnPropertyDescriptor columnProperty = new DataColumnPropertyDescriptor(_index._indexFields[i].Column); 1132if (_index._indexFields[i].IsDescending)
System\Data\Select.cs (7)
220if (CompareSortIndexDesc(ndx._indexFields)) 274int match = CompareClosestCandidateIndexDesc(ndx._indexFields); 279sortPriority = CompareSortIndexDesc(ndx._indexFields); 431IndexField[] fields = _index._indexFields; 478IndexField[] fields = _index!._indexFields; 739IndexField[] fields = _index._indexFields; 797Debug.Assert(_matchedCandidates <= _index._indexFields.Length, "GetBinaryFilteredRecords : Invalid Index");
System\Data\Selection.cs (26)
146_indexFields.Length != indexDesc.Length || 153for (int loop = 0; loop < _indexFields.Length; loop++) 155if (_indexFields[loop].Column != indexDesc[loop].Column || 156_indexFields[loop].IsDescending != indexDesc[loop].IsDescending) 310if (0 < _indexFields.Length) 312for (int i = 0; i < _indexFields.Length; i++) 314int c = _indexFields[i].Column.Compare(record1, record2); 317return (_indexFields[i].IsDescending ? -c : c); 354for (int i = 0; i < _indexFields.Length; i++) 356int c = _indexFields[i].Column.Compare(record1, record2); 388for (int i = 0; i < _indexFields.Length; i++) 390int c = _indexFields[i].Column.CompareValueTo(record1, vals[i]); 393return (_indexFields[i].IsDescending ? -c : c); 495if (_indexFields == null || _indexFields.Length == 0) 539if (_indexFields.Length != 1) 541throw ExceptionBuilder.IndexKeyLength(_indexFields.Length, 1); 548DataColumn column = _indexFields[0].Column; 552if (_indexFields[0].IsDescending) 580if (originalKey is null || 0 == c || _indexFields.Length != c) 582throw ExceptionBuilder.IndexKeyLength(_indexFields.Length, c); 593key[i] = _indexFields[i].Column.ConvertValue(originalKey[i]); 721bool append = (0 == _indexFields.Length); 793if ((0 == _indexFields.Length) && (null != _table)) 1016object[] element = new object[_indexFields.Length]; // number of columns in PK 1019element[j] = _indexFields[j].Column[record];
System\Data\UniqueConstraint.cs (2)
143DataColumn[] sortIndexColumns = new DataColumn[_constraintIndex._indexFields.Length]; 146sortIndexColumns[i] = _constraintIndex._indexFields[i].Column;