17 writes to _newRecord
System.Data.Common (17)
System\Data\DataTable.cs (13)
820row._newRecord = recordIndex; 825row._newRecord = recordIndex; 830row._newRecord = recordIndex + 1; 836row._newRecord = -1; 2175targetRow._newRecord = targetRow._oldRecord; 2178targetRow._newRecord = _recordManager.ImportRecord(row.Table, row._newRecord); 2736row._newRecord = newRecord; 2870row._newRecord = -1; 3319row._newRecord = -1; 3331row._newRecord = row._tempRecord; 4011row._newRecord = -1; 4407row._newRecord = proposedRecord; 4420row._newRecord = proposedRecord;
System\Data\Selection.cs (2)
460row._newRecord = record; 476row._newRecord = a;
System\Data\XMLDiffLoader.cs (2)
116row._newRecord = oldRowRecord; 170row._newRecord = oldRowRecord;
102 references to _newRecord
System.Data.Common (102)
System\Data\DataRelation.cs (2)
296if (childRow._newRecord != -1) 298RecordManager.SetKeyValues(childRow._newRecord, ChildKey, parentKeyValues);
System\Data\DataRow.cs (24)
118if (_newRecord != -1) 120_table.RecordChanged(_newRecord); 141if (_oldRecord == _newRecord) 164else if (_newRecord == -1) 600if (_oldRecord != -1 && _newRecord == -1) 607_tempRecord = _table.NewRecord(_newRecord); 664if (_newRecord == -1) 683if (_newRecord == -1) 966if (_newRecord == -1) 970return _newRecord; 979if (_newRecord != -1) 981return _newRecord; 1022if (_oldRecord == _newRecord) 1036else if (_newRecord == -1) 1059if (record == _oldRecord && record == _newRecord) 1066return (_newRecord != -1) ? DataViewRowState.ModifiedOriginal : DataViewRowState.Deleted; 1069if (record == _newRecord) 1098DataRowVersion.Current => (_newRecord != -1), 1100DataRowVersion.Default => (_tempRecord != -1 || _newRecord != -1), 1113if (dc.Compare(_oldRecord, _newRecord) != 0) 1380_tempRecord = _table.NewRecord(_newRecord); 1415_columns[i].CopyValueIntoStore(_newRecord, storeList[i]!, (BitArray)nullbitList[i]!, storeIndex); 1438if (column.DataExpression != null && !_inChangingEvent && _tempRecord == -1 && _newRecord != -1) 1442if (version == DataRowVersion.Original && _oldRecord == _newRecord)
System\Data\DataTable.cs (60)
2144int findRecord = (row._oldRecord == -1) ? row._newRecord : row._oldRecord; 2161if (row._newRecord != -1) 2176if (row._oldRecord != row._newRecord) 2178targetRow._newRecord = _recordManager.ImportRecord(row.Table, row._newRecord); 2192int saveIdxRecord = (saveRowState == DataRowState.Added) ? targetRow._newRecord : targetRow._oldRecord; 2199newRecord = (preserveChanges) ? _recordManager.CopyRecord(this, oldRecord, -1) : targetRow._newRecord; 2203else if (row._newRecord == -1) 2209newRecord = (targetRow.RowState == DataRowState.Unchanged) ? _recordManager.CopyRecord(this, oldRecord, -1) : targetRow._newRecord; 2231newRecord = targetRow._newRecord; 2240newRecord = _recordManager.CopyRecord(row.Table, row._newRecord, newRecord); 2250Debug.Assert(saveIdxRecord == ((saveRowState == DataRowState.Added) ? targetRow._newRecord : targetRow._oldRecord), "oops, you change index record without noticing it"); 2916SetOldRecord(row, row._newRecord); 2991if (row._newRecord != -1) 2993if (row._newRecord != row._oldRecord) 2995newRecord = table._recordManager.ImportRecord(row.Table, row._newRecord); 3021if (row._newRecord == -1) 3103if (row._oldRecord != row._newRecord) 3249if (row._newRecord != -1) 3253newRecord = _recordManager.ImportRecord(row.Table, row._newRecord); 3298if (row._oldRecord == -1 && row._newRecord == -1) 3316if (row._newRecord != -1) 3318row._tempRecord = row._newRecord; 3340if (row._newRecord != -1) 3342_recordManager[row._newRecord] = row; 3355row._newRecord, DataViewRowState.None, row.GetRecordState(row._newRecord)); 4005int newRecord = row._newRecord; 4122else if (DataRowAction.Delete == eAction && eRow._newRecord == -1 && (IsTypedDataTable || (null != _onRowDeletedDelegate))) 4155else if (DataRowAction.Delete == eAction && eRow._newRecord != -1 && (IsTypedDataTable || (null != _onRowDeletingDelegate))) 4295if (proposedRecord == row._newRecord) 4328int currentRecord = row._newRecord; 4380if (!suppressEnsurePropertyChanged && !row.HasPropertyChanged && (row._newRecord != proposedRecord) 4382&& (-1 != row._newRecord)) 4437(currentRecord != row._newRecord) && // RejectChanges & SetAdded 4505if ((-1 == originalRecord) && (-1 != proposedRecord) && (-1 != row._newRecord) && (proposedRecord != row._newRecord)) 4511originalRecord = row._newRecord; 4541(originalRecord != row._oldRecord) && (originalRecord != row._newRecord)) 5157if (0 != dc.Compare(dataRow._newRecord, recordNo)) 6972if (row._oldRecord != -1 && row._oldRecord != row._newRecord) 6976if (row._newRecord != -1) 6993(action == DataRowAction.Rollback && (row._oldRecord != -1 || row._newRecord != -1))) 6996if (row._oldRecord != -1 && row._oldRecord != row._newRecord) 7000if (row._newRecord != -1) 7010else if ((action == DataRowAction.Delete || (action == DataRowAction.Rollback && row._oldRecord == -1 && row._newRecord == -1)) && _dependentColumns != null) 7020if (tableRow._oldRecord != -1 && tableRow._oldRecord != tableRow._newRecord) 7042if (tableRow._newRecord != -1) 7055if (relatedRow._oldRecord != -1 && relatedRow._oldRecord != relatedRow._newRecord) 7059if (relatedRow._newRecord != -1) 7087if (row._oldRecord != -1 && row._oldRecord != row._newRecord) 7091if (row._newRecord != -1) 7093column[row._newRecord] = aggCurrent; 7107if (row._oldRecord != -1 && row._oldRecord != row._newRecord) 7111if (row._newRecord != -1) 7113column[row._newRecord] = column.DataExpression.Evaluate(row, DataRowVersion.Current); 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) 7254if (foreignVer == DataRowVersion.Original && parentRow._newRecord == parentRow._oldRecord) 7286if (foreignVer == DataRowVersion.Original && childRow._newRecord == childRow._oldRecord)
System\Data\ForeignKeyConstraint.cs (2)
262if (-1 == row._newRecord) 407if (-1 == row._newRecord)
System\Data\Merger.cs (1)
289if (row._newRecord == -1 && row._oldRecord == -1)
System\Data\RecordManager.cs (1)
274(record == r._newRecord) ||
System\Data\Select.cs (2)
614else if (row._newRecord == record) 726else if (row._newRecord == record)
System\Data\Selection.cs (7)
207else if (row._newRecord == record) 453int a = row._newRecord; 475Debug.Assert(record == row._newRecord, "newRecord has change during GetIndex"); 731if (b._oldRecord == b._newRecord) 742record = b._newRecord; 745else if (b._newRecord == -1) 756record = b._newRecord;
System\Data\XmlDataLoader.cs (3)
852childRow._oldRecord = childRow._newRecord; 1083row._oldRecord = row._newRecord; // Restore old record 1124childRow._oldRecord = childRow._newRecord;