19 writes to _oldRecord
System.Data.Common (19)
System\Data\DataTable.cs (10)
819
row.
_oldRecord
= recordIndex;
824
row.
_oldRecord
= -1;
829
row.
_oldRecord
= recordIndex;
835
row.
_oldRecord
= recordIndex;
2174
targetRow.
_oldRecord
= _recordManager.ImportRecord(row.Table, row._oldRecord);
2735
row.
_oldRecord
= oldRecord;
2869
row.
_oldRecord
= -1;
4010
row.
_oldRecord
= -1;
4517
row.
_oldRecord
= proposedRecord;
4531
row.
_oldRecord
= proposedRecord;
System\Data\Selection.cs (2)
463
row.
_oldRecord
= record;
480
row.
_oldRecord
= b;
System\Data\XmlDataLoader.cs (3)
852
childRow.
_oldRecord
= childRow._newRecord;
1083
row.
_oldRecord
= row._newRecord; // Restore old record
1124
childRow.
_oldRecord
= childRow._newRecord;
System\Data\XMLDiffLoader.cs (4)
108
row.
_oldRecord
= oldRowRecord;
115
row.
_oldRecord
= oldRowRecord;
162
row.
_oldRecord
= oldRowRecord;
169
row.
_oldRecord
= oldRowRecord;
100 references to _oldRecord
System.Data.Common (100)
System\Data\DataRelation.cs (2)
300
if (childRow.
_oldRecord
!= -1)
302
RecordManager.SetKeyValues(childRow.
_oldRecord
, ChildKey, parentKeyValues);
System\Data\DataRow.cs (20)
114
if (
_oldRecord
!= -1)
116
_table.RecordChanged(
_oldRecord
);
141
if (
_oldRecord
== _newRecord)
143
if (
_oldRecord
== -1)
160
else if (
_oldRecord
== -1)
600
if (
_oldRecord
!= -1 && _newRecord == -1)
985
throw
_oldRecord
== -1 ?
992
if (
_oldRecord
== -1)
996
return
_oldRecord
;
1022
if (
_oldRecord
== _newRecord)
1024
if (
_oldRecord
== -1)
1031
else if (
_oldRecord
== -1)
1059
if (record ==
_oldRecord
&& record == _newRecord)
1064
if (record ==
_oldRecord
)
1071
return (
_oldRecord
!= -1) ? DataViewRowState.ModifiedCurrent : DataViewRowState.Added;
1097
DataRowVersion.Original => (
_oldRecord
!= -1),
1113
if (dc.Compare(
_oldRecord
, _newRecord) != 0)
1398
if (
_oldRecord
!= -1)
1403
_columns[i].CopyValueIntoStore(
_oldRecord
, storeList[i]!, (BitArray)nullbitList[i]!, storeIndex);
1442
if (version == DataRowVersion.Original &&
_oldRecord
== _newRecord)
System\Data\DataTable.cs (64)
2144
int findRecord = (row.
_oldRecord
== -1) ? row._newRecord : row.
_oldRecord
;
2174
targetRow._oldRecord = _recordManager.ImportRecord(row.Table, row.
_oldRecord
);
2175
targetRow._newRecord = targetRow.
_oldRecord
;
2176
if (row.
_oldRecord
!= row._newRecord)
2192
int saveIdxRecord = (saveRowState == DataRowState.Added) ? targetRow._newRecord : targetRow.
_oldRecord
;
2198
oldRecord = targetRow.
_oldRecord
;
2200
oldRecord = _recordManager.CopyRecord(row.Table, row.
_oldRecord
, targetRow.
_oldRecord
);
2206
oldRecord = targetRow.
_oldRecord
;
2213
oldRecord = _recordManager.CopyRecord(row.Table, row.
_oldRecord
, oldRecord);
2230
oldRecord = targetRow.
_oldRecord
;
2236
oldRecord = _recordManager.CopyRecord(row.Table, row.
_oldRecord
, oldRecord);
2245
if (saveRowState == DataRowState.Added && targetRow.
_oldRecord
!= -1)
2250
Debug.Assert(saveIdxRecord == ((saveRowState == DataRowState.Added) ? targetRow._newRecord : targetRow.
_oldRecord
), "oops, you change index record without noticing it");
2987
if (row.
_oldRecord
!= -1)
2989
oldRecord = table._recordManager.ImportRecord(row.Table, row.
_oldRecord
);
2993
if (row._newRecord != row.
_oldRecord
)
3103
if (row.
_oldRecord
!= row._newRecord)
3245
if (row.
_oldRecord
!= -1)
3247
oldRecord = _recordManager.ImportRecord(row.Table, row.
_oldRecord
);
3298
if (row.
_oldRecord
== -1 && row._newRecord == -1)
3335
if (row.
_oldRecord
!= -1)
3337
_recordManager[row.
_oldRecord
] = row;
3350
RecordStateChanged(row.
_oldRecord
, DataViewRowState.None, DataViewRowState.Unchanged);
3354
RecordStateChanged(row.
_oldRecord
, DataViewRowState.None, row.GetRecordState(row.
_oldRecord
),
4004
int oldRecord = row.
_oldRecord
;
4110
SetNewRecord(row, row.
_oldRecord
, DataRowAction.Rollback, false, true);
4334
row.
_oldRecord
:
4395
if ((-1 == currentRecord) && (-1 != proposedRecord) && (-1 != row.
_oldRecord
) && (proposedRecord != row.
_oldRecord
))
4401
currentRecord = row.
_oldRecord
;
4434
if (currentRecord != row.
_oldRecord
)
4494
if (proposedRecord == row.
_oldRecord
)
4499
int originalRecord = row.
_oldRecord
; // cache old record after potential RowChanging event
4541
(originalRecord != row.
_oldRecord
) && (originalRecord != row._newRecord))
4706
SetNewRecord(row, row.
_oldRecord
, DataRowAction.Rollback, false, true);
6972
if (row.
_oldRecord
!= -1 && row.
_oldRecord
!= row._newRecord)
6993
(action == DataRowAction.Rollback && (row.
_oldRecord
!= -1 || row._newRecord != -1)))
6996
if (row.
_oldRecord
!= -1 && row.
_oldRecord
!= row._newRecord)
7010
else if ((action == DataRowAction.Delete || (action == DataRowAction.Rollback && row.
_oldRecord
== -1 && row._newRecord == -1)) && _dependentColumns != null)
7020
if (tableRow.
_oldRecord
!= -1 && tableRow.
_oldRecord
!= tableRow._newRecord)
7055
if (relatedRow.
_oldRecord
!= -1 && relatedRow.
_oldRecord
!= relatedRow._newRecord)
7087
if (row.
_oldRecord
!= -1 && row.
_oldRecord
!= row._newRecord)
7089
column[row.
_oldRecord
] = aggCurrent;
7107
if (row.
_oldRecord
!= -1 && row.
_oldRecord
!= row._newRecord)
7109
column[row.
_oldRecord
] = column.DataExpression.Evaluate(row, DataRowVersion.Original);
7175
else if (expressionVersion == DataRowVersion.Original && (dr.
_oldRecord
== -1 || dr.
_oldRecord
== dr._newRecord))
7193
else if (version == DataRowVersion.Original && (row.
_oldRecord
== -1 || row.
_oldRecord
== row._newRecord))
7222
if (foreignVer == DataRowVersion.Original && cachedRow._newRecord == cachedRow.
_oldRecord
)
7227
if (cachedRow != null && ((cachedRow.RowState != DataRowState.Deleted) && (version != DataRowVersion.Original || cachedRow.
_oldRecord
!= -1)))
7254
if (foreignVer == DataRowVersion.Original && parentRow._newRecord == parentRow.
_oldRecord
)
7259
if (parentRow != null && ((parentRow.RowState != DataRowState.Deleted) && (version != DataRowVersion.Original || parentRow.
_oldRecord
!= -1)))
7286
if (foreignVer == DataRowVersion.Original && childRow._newRecord == childRow.
_oldRecord
)
7291
if (childRow != null && ((childRow.RowState != DataRowState.Deleted) && (version != DataRowVersion.Original || childRow.
_oldRecord
!= -1)))
System\Data\Filter\AggregateNode.cs (1)
214
if (version == DataRowVersion.Original && rows[i].
_oldRecord
== -1)
System\Data\Filter\DataExpression.cs (1)
181
if (version == DataRowVersion.Original && row.
_oldRecord
== -1)
System\Data\Merger.cs (1)
289
if (row._newRecord == -1 && row.
_oldRecord
== -1)
System\Data\RecordManager.cs (1)
273
(record == r.
_oldRecord
) ||
System\Data\Select.cs (2)
610
if (row.
_oldRecord
== record)
722
if (row.
_oldRecord
== record)
System\Data\Selection.cs (8)
203
if (row.
_oldRecord
== record)
454
int b = row.
_oldRecord
;
479
Debug.Assert(record == row.
_oldRecord
, "oldRecord has change during GetIndex");
731
if (b.
_oldRecord
== b._newRecord)
735
record = b.
_oldRecord
;
738
else if (b.
_oldRecord
== -1)
749
record = b.
_oldRecord
;
760
record = b.
_oldRecord
;