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