20 writes to _tempRecord
System.Data.Common (20)
System\Data\DataRow.cs (5)
48
_tempRecord
= builder._record;
594
_tempRecord
= -1;
607
_tempRecord
= _table.NewRecord(_newRecord);
625
_table.FreeRecord(ref
_tempRecord
);
1380
_tempRecord
= _table.NewRecord(_newRecord);
System\Data\DataTable.cs (15)
842
row.
_tempRecord
= recordIndex;
848
row.
_tempRecord
= -1;
2188
targetRow.
_tempRecord
= -1;
2254
targetRow.
_tempRecord
= proposedRecord;
2767
row.
_tempRecord
= -1;
2795
row.
_tempRecord
= record;
2871
row.
_tempRecord
= -1;
3318
row.
_tempRecord
= row._newRecord;
3327
row.
_tempRecord
= -1;
3332
row.
_tempRecord
= -1;
4307
row.
_tempRecord
= proposedRecord;
4318
row.
_tempRecord
= -1;
4326
row.
_tempRecord
= -1;
5143
dataRow.
_tempRecord
= recordNo;
5227
dataRow.
_tempRecord
= cacheTempRecord;
60 references to _tempRecord
System.Data.Common (60)
System\Data\DataRelation.cs (3)
250
if (childRow.
_tempRecord
== -1)
292
if (childRow.
_tempRecord
!= -1)
294
RecordManager.SetKeyValues(childRow.
_tempRecord
, ChildKey, parentKeyValues);
System\Data\DataRow.cs (22)
341
Debug.Assert(-1 !=
_tempRecord
, "how no propsed record to cancel?");
484
if (
_tempRecord
== -1)
513
Debug.Assert(-1 !=
_tempRecord
, "how no propsed record to cancel?");
583
if (
_tempRecord
!= -1)
585
if (
_tempRecord
< _table._recordManager.LastFreeRecord)
597
_table._recordManager.VerifyRecord(
_tempRecord
, this);
608
Debug.Assert(-1 !=
_tempRecord
, "missing temp record");
626
Debug.Assert(-1 ==
_tempRecord
, "unexpected temp record");
688
if (
_tempRecord
!= -1)
693
_table.SetNewRecord(this,
_tempRecord
, suppressEnsurePropertyChanged: true);
975
if (
_tempRecord
!= -1)
977
return
_tempRecord
;
1001
if (
_tempRecord
== -1)
1005
return
_tempRecord
;
1099
DataRowVersion.Proposed => (
_tempRecord
!= -1),
1100
DataRowVersion.Default => (
_tempRecord
!= -1 || _newRecord != -1),
1239
bool immediate = (
_tempRecord
== -1);
1381
if (
_tempRecord
!= -1)
1384
_table.SetNewRecord(this,
_tempRecord
, suppressEnsurePropertyChanged: true);
1421
if (-1 !=
_tempRecord
)
1426
_columns[i].CopyValueIntoStore(
_tempRecord
, storeList[i]!, (BitArray)nullbitList[i]!, storeIndex);
1438
if (column.DataExpression != null && !_inChangingEvent &&
_tempRecord
== -1 && _newRecord != -1)
System\Data\DataTable.cs (22)
726
if (-1 != row.
_tempRecord
)
2187
int proposedRecord = targetRow.
_tempRecord
; // by saving off the tempRecord, EndEdit won't free newRecord
2766
int record = row.
_tempRecord
;
2826
if (row.
_tempRecord
!= -1)
3331
row._newRecord = row.
_tempRecord
;
3486
c.Init(row.
_tempRecord
);
4287
if (row.
_tempRecord
!= proposedRecord)
4436
if ((currentRecord != row.
_tempRecord
) && // Delete, AcceptChanges, BeginEdit
4540
if ((originalRecord != -1) && (originalRecord != row.
_tempRecord
) &&
5142
int cacheTempRecord = dataRow.
_tempRecord
;
5201
Debug.Assert(dataRow.
_tempRecord
== recordNo, "tempRecord has been changed in event handler");
5212
if (dataRow.
_tempRecord
!= recordNo)
5223
recordNo = dataRow.
_tempRecord
;
5231
if (dataRow.
_tempRecord
!= -1)
6980
if (row.
_tempRecord
!= -1)
7004
if (row.
_tempRecord
!= -1)
7029
if (tableRow.
_tempRecord
!= -1)
7063
if (relatedRow.
_tempRecord
!= -1)
7095
if (row.
_tempRecord
!= -1)
7097
column[row.
_tempRecord
] = aggCurrent;
7115
if (row.
_tempRecord
!= -1)
7117
column[row.
_tempRecord
] = column.DataExpression.Evaluate(row, DataRowVersion.Proposed);
System\Data\ForeignKeyConstraint.cs (3)
585
if (_childKey.RecordsEqual(childRow.
_tempRecord
, parentKeyValuesRecord))
600
if (_childKey.Table == _parentKey.Table && childRow.
_tempRecord
!= -1)
607
if (0 != column.CompareValueTo(childRow.
_tempRecord
, value))
System\Data\RecordManager.cs (1)
275
(record == r.
_tempRecord
), "record of a different row");
System\Data\Select.cs (2)
618
else if (row.
_tempRecord
== record)
730
else if (row.
_tempRecord
== record)
System\Data\Selection.cs (1)
211
else if (row.
_tempRecord
== record)
System\Data\UniqueConstraint.cs (1)
253
(action == DataRowAction.Rollback && row.
_tempRecord
!= -1)))
System\Data\XmlDataLoader.cs (2)
487
c.Init(row.
_tempRecord
);
1071
c[row.
_tempRecord
] = foundColumns[i] ?? DBNull.Value;
System\Xml\XmlDataDocument.cs (3)
1758
if (parentRowInTree!.
_tempRecord
!= -1 && colInParent.CompareValueTo(parentRowInTree.
_tempRecord
, comparedValue) != 0)
2547
c.Init(row.
_tempRecord
);