17 writes to newRecord
System.Data (17)
fx\src\data\System\Data\DataTable.cs (13)
741
row.
newRecord
= recordIndex;
746
row.
newRecord
= recordIndex;
751
row.
newRecord
= recordIndex + 1;
757
row.
newRecord
= -1;
2020
targetRow.
newRecord
= targetRow.oldRecord;
2022
targetRow.
newRecord
= recordManager.ImportRecord(row.Table, row.newRecord);
2521
row.
newRecord
= newRecord;
2647
row.
newRecord
= -1;
3023
row.
newRecord
= -1;
3033
row.
newRecord
= row.tempRecord;
3615
row.
newRecord
= -1;
3957
row.
newRecord
= proposedRecord;
3969
row.
newRecord
= proposedRecord;
fx\src\data\System\Data\Selection.cs (2)
463
row.
newRecord
= record;
477
row.
newRecord
= a;
fx\src\data\System\Data\XMLDiffLoader.cs (2)
112
row.
newRecord
= oldRowRecord;
161
row.
newRecord
= oldRowRecord;
102 references to newRecord
System.Data (102)
fx\src\data\System\Data\DataRelation.cs (2)
304
if (childRow.
newRecord
!= -1) {
305
ChildTable.recordManager.SetKeyValues(childRow.
newRecord
, ChildKey, parentKeyValues);
fx\src\data\System\Data\DataRow.cs (24)
123
if (
newRecord
!= -1)
124
_table.RecordChanged(
newRecord
);
154
if (oldRecord ==
newRecord
) {
171
else if (
newRecord
== -1) {
543
if (oldRecord != -1 &&
newRecord
== -1) {
551
tempRecord = _table.NewRecord(
newRecord
);
601
if (
newRecord
== -1)
618
if (
newRecord
== -1) {
899
if (
newRecord
== -1)
901
return
newRecord
;
907
if (
newRecord
!= -1) {
908
return
newRecord
;
945
if (oldRecord ==
newRecord
) {
957
else if (
newRecord
== -1) {
971
if (record == oldRecord && record ==
newRecord
)
974
return(
newRecord
!= -1) ? DataViewRowState.ModifiedOriginal : DataViewRowState.Deleted;
975
if (record ==
newRecord
)
1000
return(
newRecord
!= -1);
1004
return(tempRecord != -1 ||
newRecord
!= -1);
1015
if (dc.Compare(oldRecord,
newRecord
) != 0) {
1256
tempRecord = _table.NewRecord(
newRecord
);
1283
_columns[i].CopyValueIntoStore(
newRecord
, storeList[i], (BitArray) nullbitList[i], storeIndex);
1302
if (column.DataExpression != null && !inChangingEvent && tempRecord == -1 &&
newRecord
!= -1)
1306
if (version == DataRowVersion.Original && oldRecord ==
newRecord
) {
fx\src\data\System\Data\DataTable.cs (60)
1995
int findRecord = (row.oldRecord == -1) ? row.
newRecord
: row.oldRecord;
2009
if (row.
newRecord
!= -1) {
2021
if(row.oldRecord != row.
newRecord
) {
2022
targetRow.newRecord = recordManager.ImportRecord(row.Table, row.
newRecord
);
2034
int saveIdxRecord = (saveRowState == DataRowState.Added) ? targetRow.
newRecord
: saveIdxRecord = targetRow.oldRecord;
2040
newRecord = (preserveChanges) ? recordManager.CopyRecord(this, oldRecord, -1) : targetRow.
newRecord
;
2044
else if (row.
newRecord
== -1) {
2048
newRecord = (targetRow.RowState == DataRowState.Unchanged)? recordManager.CopyRecord(this, oldRecord, -1) : targetRow.
newRecord
;
2066
newRecord = targetRow.
newRecord
;
2073
newRecord = recordManager.CopyRecord(row.Table, row.
newRecord
, newRecord);
2080
Debug.Assert(saveIdxRecord == ((saveRowState == DataRowState.Added) ? targetRow.
newRecord
: targetRow.oldRecord), "oops, you change index record without noticing it");
2685
SetOldRecord(row, row.
newRecord
);
2752
if (row.
newRecord
!= -1) {
2753
if (row.
newRecord
!= row.oldRecord) {
2754
newRecord = table.recordManager.ImportRecord(row.Table, row.
newRecord
);
2777
if (row.
newRecord
== -1) {
2842
if (row.oldRecord != row.
newRecord
)
2967
if (row.
newRecord
!= -1) { // row not deleted
2969
newRecord = recordManager.ImportRecord(row.Table, row.
newRecord
);
3007
if (row.oldRecord == -1 && row.
newRecord
== -1) {
3021
if (row.
newRecord
!= -1) {
3022
row.tempRecord = row.
newRecord
;
3040
if (row.
newRecord
!= -1)
3041
recordManager[row.
newRecord
] = row;
3051
row.
newRecord
, DataViewRowState.None, row.GetRecordState(row.
newRecord
));
3609
int newRecord = row.
newRecord
;
3712
else if (DataRowAction.Delete == eAction && eRow.
newRecord
== -1 && (IsTypedDataTable || (null != onRowDeletedDelegate))) {
3743
else if (DataRowAction.Delete == eAction && eRow.
newRecord
!= -1 && (IsTypedDataTable || (null != onRowDeletingDelegate))) {
3860
if (proposedRecord == row.
newRecord
) {
3888
int currentRecord = row.
newRecord
;
3930
if (!suppressEnsurePropertyChanged && !row.HasPropertyChanged && (row.
newRecord
!= proposedRecord)
3932
&& (-1 != row.
newRecord
)) // explictly not fixing parts of Dev10 Bug 697909: when mixing current and original records in RowStateFilter
3986
(currentRecord != row.
newRecord
) && // RejectChanges & SetAdded
4047
if ((-1 == originalRecord) && (-1 != proposedRecord) && (-1 != row.
newRecord
) && (proposedRecord != row.
newRecord
)) {
4052
originalRecord = row.
newRecord
;
4076
(originalRecord != row.oldRecord) && (originalRecord != row.
newRecord
)) {
4613
if (0 != dc.Compare(dataRow.
newRecord
, recordNo)) {
6174
if (row.oldRecord != -1 && row.oldRecord != row.
newRecord
) {
6177
if (row.
newRecord
!= -1) {
6191
(action == DataRowAction.Rollback && (row.oldRecord!=-1 || row.
newRecord
!=-1))) {
6193
if (row.oldRecord != -1 && row.oldRecord != row.
newRecord
) {
6196
if (row.
newRecord
!= -1) {
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
) {
6231
if (tableRow.
newRecord
!= -1)
6242
if (relatedRow.oldRecord != -1 && relatedRow.oldRecord != relatedRow.
newRecord
) {
6245
if (relatedRow.
newRecord
!= -1) {
6266
if (row.oldRecord != -1 && row.oldRecord != row.
newRecord
) {
6269
if (row.
newRecord
!= -1) {
6270
column[row.
newRecord
] = aggCurrent;
6281
if (row.oldRecord != -1 && row.oldRecord != row.
newRecord
) {
6284
if (row.
newRecord
!= -1) {
6285
column[row.
newRecord
] = column.DataExpression.Evaluate(row, DataRowVersion.Current);
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)
6383
if (foreignVer == DataRowVersion.Original && parentRow.
newRecord
== parentRow.oldRecord)
6400
if (foreignVer == DataRowVersion.Original && childRow.
newRecord
== childRow.oldRecord)
fx\src\data\System\Data\ForeignKeyConstraint.cs (2)
263
if (-1 == row.
newRecord
)
378
if (-1 == row.
newRecord
)
fx\src\data\System\Data\Merger.cs (1)
250
if (row.
newRecord
== -1 && row.oldRecord == -1)
fx\src\data\System\Data\RecordManager.cs (1)
242
(record == rows[record].
newRecord
) ||
fx\src\data\System\Data\Select.cs (2)
509
else if (row.
newRecord
== record) {
611
else if (row.
newRecord
== record) {
fx\src\data\System\Data\Selection.cs (7)
231
else if (row.
newRecord
== record) {
458
int a = row.
newRecord
;
476
Debug.Assert(record == row.
newRecord
, "newRecord has change during GetIndex");
703
if (b.oldRecord == b.
newRecord
) {
710
record = b.
newRecord
;
713
else if (b.
newRecord
== -1) {
720
record = b.
newRecord
;
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
;