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