6 instantiations of Index
System.Data.Common (6)
System\Data\DataTable.cs (1)
3203
Index ndx = new
Index
(this, indexDesc, recordStates, rowFilter);
System\Data\DataView.cs (1)
1588
newIndex = new
Index
(_table, SortComparison, ((DataViewRowState)_recordStates), GetFilter());
System\Data\Merger.cs (1)
283
ndxSearch = new
Index
(dst, dst._primaryKey!.Key.GetIndexDesc(), DataViewRowState.OriginalRows | DataViewRowState.Added, null);
System\Data\Select.cs (3)
322
_index = new
Index
(_table, _indexFields, _recordStates, null);
390
_index = new
Index
(_table, ndxFields, _recordStates, null);
427
_index = new
Index
(_table, ndxFields, _recordStates, null);
76 references to Index
System.Data.Common (76)
System\Data\DataColumn.cs (3)
44
internal
Index
? _sortIndex;
1070
private
Index
SortIndex
1716
Index
index = SortIndex;
System\Data\DataColumnCollection.cs (1)
564
foreach (
Index
_ in _table.LiveIndexes) { }
System\Data\DataKey.cs (2)
207
internal
Index
GetSortIndex() => GetSortIndex(DataViewRowState.CurrentRows);
209
internal
Index
GetSortIndex(DataViewRowState recordStates)
System\Data\DataRelation.cs (3)
227
Index
index = childKey.GetSortIndex((version == DataRowVersion.Original) ? DataViewRowState.OriginalRows : DataViewRowState.CurrentRows);
242
Index
index = parentKey.GetSortIndex((version == DataRowVersion.Original) ? DataViewRowState.OriginalRows : DataViewRowState.CurrentRows);
262
Index
index = parentKey.GetSortIndex((version == DataRowVersion.Original) ? DataViewRowState.OriginalRows : DataViewRowState.CurrentRows);
System\Data\DataTable.cs (28)
64
internal readonly List<
Index
> _indexes;
66
private List<
Index
>? _shadowIndexes;
102
private
Index
? _loadIndex;
103
private
Index
? _loadIndexwithOriginalAdded;
104
private
Index
? _loadIndexwithCurrentDeleted;
175
_indexes = new List<
Index
>();
1000
Index
ndx = _shadowIndexes[i]; // shadowindexes may change, see ShadowIndexCopy()
1120
internal List<
Index
> LiveIndexes
1128
Index
index = _indexes[i];
2130
internal DataRow? FindByIndex(
Index
ndx, object[] key)
2136
internal DataRow? FindMergeTarget(DataRow row, DataKey key,
Index
ndx)
2169
internal DataRow MergeRow(DataRow row, DataRow? targetRow, bool preserveChanges,
Index
? idxSearch)
3049
Index
index = GetIndex(NewIndexDesc(key));
3060
Index
index = GetIndex(NewIndexDesc(key));
3176
internal
Index
GetIndex(IndexField[] indexDesc) =>
3179
internal
Index
GetIndex(string sort, DataViewRowState recordStates, IFilter? rowFilter) =>
3182
internal
Index
GetIndex(IndexField[] indexDesc, DataViewRowState recordStates, IFilter? rowFilter)
3189
Index
index = _indexes[i];
3203
Index
ndx = new Index(this, indexDesc, recordStates, rowFilter);
3771
Index
ndx = _shadowIndexes[i]; // shadowindexes may change, see ShadowIndexCopy()
3797
Index
ndx = _shadowIndexes[i]; // shadowindexes may change, see ShadowIndexCopy()
3818
Index
ndx = _shadowIndexes[i]; // shadowindexes may change, see ShadowIndexCopy()
3841
Index
ndx = _shadowIndexes[i]; // shadowindexes may change, see ShadowIndexCopy()
4075
Index
ndx = _shadowIndexes[i]; // shadowindexes may change, see ShadowIndexCopy()
4584
_shadowIndexes = new List<
Index
>(_indexes);
4749
Index
? indextoUse = null;
4796
Index
? index = null;
5007
private DataRow LoadRow(object?[] values, LoadOption loadOption,
Index
? searchIndex)
System\Data\DataView.cs (10)
29
private
Index
? _index;
30
private Dictionary<string,
Index
>? _findIndexes;
760
internal Range FindRecords<TKey, TRow>(
Index
.ComparisonBySelector<TKey, TRow> comparison, TKey key) where TRow : DataRow
909
internal
Index
? GetFindIndex(string column, bool keepIndex)
911
_findIndexes ??= new Dictionary<string,
Index
>();
913
Index
? findIndex;
1005
Index
? findIndex = null;
1558
Dictionary<string,
Index
> indexes = _findIndexes;
1561
foreach (KeyValuePair<string,
Index
> entry in indexes)
1580
Index
? newIndex = null;
System\Data\DataViewListener.cs (3)
15
private
Index
? _index;
150
internal void RegisterListChangedEvent(
Index
index)
166
Index
? index = _index;
System\Data\ForeignKeyConstraint.cs (9)
174
Index
childIndex = _childKey.GetSortIndex();
178
Index
parentIndex = _parentKey.GetSortIndex();
207
Index
childIndex = _childKey.GetSortIndex();
210
Index
parentIndex = _parentKey.GetSortIndex();
232
Index
childIndex = _childKey.GetSortIndex(row.RowState == DataRowState.Deleted ? DataViewRowState.Deleted : DataViewRowState.CurrentRows);
273
Index
childIndex = _childKey.GetSortIndex();
362
Index
childIndex = _childKey.GetSortIndex(row.RowState == DataRowState.Deleted ? DataViewRowState.OriginalRows : DataViewRowState.CurrentRows);
418
Index
childIndex = _childKey.GetSortIndex();
596
Index
parentIndex = _parentKey.GetSortIndex();
System\Data\LinqDataView.cs (5)
129
Index
.ComparisonBySelector<object, DataRow> compareDelg =
130
new
Index
.ComparisonBySelector<object, DataRow>(comparerKeyRow!);
165
Index
.ComparisonBySelector<object, DataRow> compareDelg =
166
new
Index
.ComparisonBySelector<object, DataRow>(comparerKeyRow!);
205
new
Index
.ComparisonBySelector<object, DataRow>(comparerKeyRow!),
System\Data\Merger.cs (2)
199
Index
? ndxSearch = null;
239
Index
? ndxSearch = null;
System\Data\Select.cs (3)
21
private
Index
? _index;
213
Index
ndx = _table._indexes[i];
269
Index
ndx = _table._indexes[i];
System\Data\Selection.cs (4)
44
private readonly
Index
_index;
46
internal IndexTree(
Index
index) : base(TreeAccessMethod.KEY_SEARCH_AND_INDEX)
1074
Debug.Assert(!
Index
.ContainsReference(_listeners, listener), "already contains reference");
1080
return
Index
.IndexOfReference(_listeners, listener);
System\Data\UniqueConstraint.cs (3)
19
private
Index
? _constraintIndex;
127
internal
Index
ConstraintIndex
221
Index
index = ConstraintIndex;