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