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