19 writes to oldRecord
System.Data (19)
fx\src\data\System\Data\DataTable.cs (10)
740
row.
oldRecord
= recordIndex;
745
row.
oldRecord
= -1;
750
row.
oldRecord
= recordIndex;
756
row.
oldRecord
= recordIndex;
2019
targetRow.
oldRecord
= recordManager.ImportRecord(row.Table, row.oldRecord);
2520
row.
oldRecord
= oldRecord;
2646
row.
oldRecord
= -1;
3614
row.
oldRecord
= -1;
4058
row.
oldRecord
= proposedRecord;
4069
row.
oldRecord
= proposedRecord;
fx\src\data\System\Data\Selection.cs (2)
466
row.
oldRecord
= record;
481
row.
oldRecord
= b;
fx\src\data\System\Data\XmlDataLoader.cs (3)
802
childRow.
oldRecord
= childRow.newRecord;
1020
row.
oldRecord
= row.newRecord; // Restore old record
1057
childRow.
oldRecord
= childRow.newRecord;
fx\src\data\System\Data\XMLDiffLoader.cs (4)
106
row.
oldRecord
= oldRowRecord ;
111
row.
oldRecord
= oldRowRecord;
155
row.
oldRecord
= oldRowRecord ;
160
row.
oldRecord
= oldRowRecord;
100 references to oldRecord
System.Data (100)
fx\src\data\System\Data\DataRelation.cs (2)
307
if (childRow.
oldRecord
!= -1) {
308
ChildTable.recordManager.SetKeyValues(childRow.
oldRecord
, ChildKey, parentKeyValues);
fx\src\data\System\Data\DataRow.cs (20)
121
if (
oldRecord
!= -1)
122
_table.RecordChanged(
oldRecord
);
154
if (
oldRecord
== newRecord) {
155
if (
oldRecord
== -1) {
168
else if (
oldRecord
== -1) {
543
if (
oldRecord
!= -1 && newRecord == -1) {
911
if (
oldRecord
== -1)
918
if (
oldRecord
== -1)
920
return
oldRecord
;
945
if (
oldRecord
== newRecord) {
946
if (
oldRecord
== -1) {
953
else if (
oldRecord
== -1) {
971
if (record ==
oldRecord
&& record == newRecord)
973
if (record ==
oldRecord
)
976
return(
oldRecord
!= -1) ? DataViewRowState.ModifiedCurrent : DataViewRowState.Added;
998
return(
oldRecord
!= -1);
1015
if (dc.Compare(
oldRecord
, newRecord) != 0) {
1272
if (
oldRecord
!= -1) {//Copy original record for the row in Unchanged, Modified, Deleted state.
1274
_columns[i].CopyValueIntoStore(
oldRecord
, storeList[i], (BitArray) nullbitList[i], storeIndex);
1306
if (version == DataRowVersion.Original &&
oldRecord
== newRecord) {
fx\src\data\System\Data\DataTable.cs (64)
1995
int findRecord = (row.
oldRecord
== -1) ? row.newRecord : row.
oldRecord
;
2019
targetRow.oldRecord = recordManager.ImportRecord(row.Table, row.
oldRecord
);
2020
targetRow.newRecord = targetRow.
oldRecord
;
2021
if(row.
oldRecord
!= row.newRecord) {
2034
int saveIdxRecord = (saveRowState == DataRowState.Added) ? targetRow.newRecord : saveIdxRecord = targetRow.
oldRecord
;
2039
oldRecord = targetRow.
oldRecord
;
2041
oldRecord = recordManager.CopyRecord(row.Table, row.
oldRecord
, targetRow.
oldRecord
);
2046
oldRecord = targetRow.
oldRecord
;
2052
oldRecord = recordManager.CopyRecord(row.Table, row.
oldRecord
, oldRecord);
2065
oldRecord = targetRow.
oldRecord
;
2070
oldRecord = recordManager.CopyRecord(row.Table, row.
oldRecord
, oldRecord);
2078
if (saveRowState == DataRowState.Added && targetRow.
oldRecord
!= -1)
2080
Debug.Assert(saveIdxRecord == ((saveRowState == DataRowState.Added) ? targetRow.newRecord : targetRow.
oldRecord
), "oops, you change index record without noticing it");
2749
if (row.
oldRecord
!= -1) {
2750
oldRecord = table.recordManager.ImportRecord(row.Table, row.
oldRecord
);
2753
if (row.newRecord != row.
oldRecord
) {
2842
if (row.
oldRecord
!= row.newRecord)
2964
if (row.
oldRecord
!= -1) {
2965
oldRecord = recordManager.ImportRecord(row.Table, row.
oldRecord
);
3007
if (row.
oldRecord
== -1 && row.newRecord == -1) {
3037
if (row.
oldRecord
!= -1)
3038
recordManager[row.
oldRecord
] = row;
3047
RecordStateChanged(row.
oldRecord
, DataViewRowState.None, DataViewRowState.Unchanged);
3050
RecordStateChanged(row.
oldRecord
, DataViewRowState.None, row.GetRecordState(row.
oldRecord
),
3608
int oldRecord = row.
oldRecord
;
3703
SetNewRecord(row, row.
oldRecord
, DataRowAction.Rollback, false, true);
3894
row.
oldRecord
:
3946
if ((-1 == currentRecord) && (-1 != proposedRecord) && (-1 != row.
oldRecord
) && (proposedRecord != row.
oldRecord
)) {
3951
currentRecord = row.
oldRecord
;
3983
if (currentRecord != row.
oldRecord
)
4037
if (proposedRecord == row.
oldRecord
) {
4041
int originalRecord = row.
oldRecord
; // cache old record after potential RowChanging event
4076
(originalRecord != row.
oldRecord
) && (originalRecord != row.newRecord)) {
4226
SetNewRecord(row, row.
oldRecord
, DataRowAction.Rollback, false, true);
6174
if (row.
oldRecord
!= -1 && row.
oldRecord
!= row.newRecord) {
6191
(action == DataRowAction.Rollback && (row.
oldRecord
!=-1 || row.newRecord!=-1))) {
6193
if (row.
oldRecord
!= -1 && row.
oldRecord
!= row.newRecord) {
6204
else if ((action == DataRowAction.Delete || (action==DataRowAction.Rollback && row.
oldRecord
==-1 && row.newRecord==-1)) && dependentColumns != null) {
6210
if (tableRow.
oldRecord
!= -1 && tableRow.
oldRecord
!= tableRow.newRecord) {
6242
if (relatedRow.
oldRecord
!= -1 && relatedRow.
oldRecord
!= relatedRow.newRecord) {
6266
if (row.
oldRecord
!= -1 && row.
oldRecord
!= row.newRecord) {
6267
column[row.
oldRecord
] = aggCurrent;
6281
if (row.
oldRecord
!= -1 && row.
oldRecord
!= row.newRecord) {
6282
column[row.
oldRecord
] = column.DataExpression.Evaluate(row, DataRowVersion.Original);
6330
else if (expressionVersion == DataRowVersion.Original && (dr.
oldRecord
== -1 || dr.
oldRecord
== dr.newRecord)) {
6344
else if (version == DataRowVersion.Original && (row.
oldRecord
== -1 || row.
oldRecord
== row.newRecord)) {
6365
if (foreignVer == DataRowVersion.Original && cachedRow.newRecord == cachedRow.
oldRecord
)
6367
if (cachedRow != null && ((cachedRow.RowState != DataRowState.Deleted) && (version != DataRowVersion.Original || cachedRow.
oldRecord
!= -1))) {// if deleted GetRecordFromVersion will throw
6383
if (foreignVer == DataRowVersion.Original && parentRow.newRecord == parentRow.
oldRecord
)
6385
if (parentRow != null && ((parentRow.RowState != DataRowState.Deleted) && (version != DataRowVersion.Original || parentRow.
oldRecord
!= -1))) {// if deleted GetRecordFromVersion will throw
6400
if (foreignVer == DataRowVersion.Original && childRow.newRecord == childRow.
oldRecord
)
6402
if (childRow != null && ((childRow.RowState != DataRowState.Deleted) && (version != DataRowVersion.Original || childRow.
oldRecord
!= -1))) { // if deleted GetRecordFromVersion will throw
fx\src\data\System\Data\Filter\AggregateNode.cs (1)
190
if (version == DataRowVersion.Original && rows[i].
oldRecord
== -1) {
fx\src\data\System\Data\Filter\DataExpression.cs (1)
155
if (version == DataRowVersion.Original && row.
oldRecord
== -1)
fx\src\data\System\Data\Merger.cs (1)
250
if (row.newRecord == -1 && row.
oldRecord
== -1)
fx\src\data\System\Data\RecordManager.cs (1)
241
(record == rows[record].
oldRecord
) ||
fx\src\data\System\Data\Select.cs (2)
506
if (row.
oldRecord
== record) {
608
if (row.
oldRecord
== record) {
fx\src\data\System\Data\Selection.cs (8)
228
if (row.
oldRecord
== record) {
459
int b = row.
oldRecord
;
480
Debug.Assert(record == row.
oldRecord
, "oldRecord has change during GetIndex");
703
if (b.
oldRecord
== b.newRecord) {
705
record = b.
oldRecord
;
708
else if (b.
oldRecord
== -1) {
715
record = b.
oldRecord
;
723
record = b.
oldRecord
;