115 references to RowState
System.Data.Common (115)
System\Data\Common\AdapterUtil.Common.cs (5)
716switch (dataRow.RowState) 728Debug.Assert(0 == (rowStates & dataRow.RowState), "flagged RowState"); 741switch (dataRow.RowState) 753Debug.Assert(0 == (rowStates & dataRow.RowState), "flagged RowState"); 763if (0 != (dataRow.RowState & rowStates))
System\Data\Common\DbDataAdapter.cs (6)
1020switch (dataRow.RowState) 1039throw ADP.InvalidDataRowState(dataRow.RowState); // out of Update without completing batch 1083if (DataRowState.Unchanged == dataRow.RowState) 1091if (DataRowState.Unchanged == dataRow.RowState) 1641if (0 != ((DataRowState.Added | DataRowState.Deleted | DataRowState.Modified) & row.RowState)) 1714if (0 != ((DataRowState.Detached | DataRowState.Unchanged) & row.RowState))
System\Data\DataColumn.cs (1)
1425if (dr.RowState == DataRowState.Deleted)
System\Data\DataRow.cs (8)
545if (RowState != DataRowState.Detached && RowState != DataRowState.Deleted) 1182if (RowState != DataRowState.Detached) 1191if (RowState != DataRowState.Deleted) 1208if (RowState != DataRowState.Deleted) 1366if (RowState == DataRowState.Unchanged) 1378if (RowState == DataRowState.Unchanged) 1409DataRowState state = RowState;
System\Data\DataRowCollection.cs (4)
102public int IndexOf(DataRow? row) => (null == row) || (row.Table != _table) || ((0 == row.RBTreeNodeId) && (row.RowState == DataRowState.Detached)) ? 184if ((row.RowState != DataRowState.Deleted) && (row.RowState != DataRowState.Detached)) 189if (row.RowState != DataRowState.Detached)
System\Data\DataRowComparer.cs (3)
150if (leftRow.RowState == DataRowState.Deleted || rightRow.RowState == DataRowState.Deleted) 180if (row.RowState == DataRowState.Deleted)
System\Data\DataSet.cs (3)
1399DataRowState rowState = row.RowState; 1437if (DataRowState.Deleted != relatedRow.RowState) 1560if ((row.RowState & rowStates) != 0)
System\Data\DataTable.cs (25)
703DataRowState rowState = row.RowState; 2191DataRowState saveRowState = targetRow.RowState; 2195if (targetRow.RowState == DataRowState.Unchanged && row.RowState == DataRowState.Unchanged) 2209newRecord = (targetRow.RowState == DataRowState.Unchanged) ? _recordManager.CopyRecord(this, oldRecord, -1) : targetRow._newRecord; 2232if (targetRow.RowState == DataRowState.Unchanged) 3136if ((row.RowState & rowStates) != 0) 3251if (row.RowState != DataRowState.Unchanged) 3347if (row.RowState == DataRowState.Unchanged) 4333(row.RowState != DataRowState.Unchanged ? 4445if (row.RowState == DataRowState.Detached && row.rowID != -1) 4547if (row.RowState == DataRowState.Detached && row.rowID != -1) 4704if (row.RowState == DataRowState.Deleted) 5057if (loadOption != LoadOption.Upsert || dataRow.RowState != DataRowState.Deleted) 5151switch (dataRow.RowState) 5173action = dataRow.RowState switch 5202if (DataRowState.Detached == dataRow.RowState) 5243if (dataRow.RowState == DataRowState.Unchanged) 5253if (dataRow.RowState == DataRowState.Deleted) 5259if (dataRow.RowState == DataRowState.Unchanged) 7171if (dr.RowState == DataRowState.Deleted) 7189if (row.RowState == DataRowState.Deleted) 7227if (cachedRow != null && ((cachedRow.RowState != DataRowState.Deleted) && (version != DataRowVersion.Original || cachedRow._oldRecord != -1))) 7259if (parentRow != null && ((parentRow.RowState != DataRowState.Deleted) && (version != DataRowVersion.Original || parentRow._oldRecord != -1))) 7291if (childRow != null && ((childRow.RowState != DataRowState.Deleted) && (version != DataRowVersion.Original || childRow._oldRecord != -1)))
System\Data\DataTableExtensions.cs (2)
148switch (current.RowState) 172throw DataSetUtil.InvalidDataRowState(current.RowState);
System\Data\DataTableReader.cs (6)
192while (_currentDataRow.RowState == DataRowState.Deleted) 249if ((_currentDataRow == null) || (_currentDataRow.RowState == DataRowState.Deleted)) 273if ((_currentDataRow == null) || (_currentDataRow.RowState == DataRowState.Deleted)) 895if ((_currentDataRow.RowState == DataRowState.Deleted) || (_currentDataRow.RowState == DataRowState.Detached) || _currentRowRemoved) 961if (args.Row.RowState == DataRowState.Detached)
System\Data\DataView.cs (2)
790if (DataRowState.Detached == newRow.RowState) 868if ((null != _index) && (DataRowState.Detached != rowview.Row.RowState))
System\Data\Filter\AggregateNode.cs (2)
201if (rows[i].RowState == DataRowState.Deleted) 210else if ((DataRowAction.Rollback == rows[i]._action) && (rows[i].RowState == DataRowState.Added))
System\Data\Filter\DataExpression.cs (1)
179if (row.RowState == DataRowState.Deleted)
System\Data\ForeignKeyConstraint.cs (7)
225if (row.RowState == DataRowState.Detached) 232Index childIndex = _childKey.GetSortIndex(row.RowState == DataRowState.Deleted ? DataViewRowState.Deleted : DataViewRowState.CurrentRows); 233object[] key = row.GetKeyValues(_parentKey, row.RowState == DataRowState.Deleted ? DataRowVersion.Original : DataRowVersion.Default); 247if (DataRowState.Detached != childRow.RowState) 362Index childIndex = _childKey.GetSortIndex(row.RowState == DataRowState.Deleted ? DataViewRowState.OriginalRows : DataViewRowState.CurrentRows); 363object[] key = row.GetKeyValues(_parentKey, row.RowState == DataRowState.Modified ? DataRowVersion.Current : DataRowVersion.Default); 387if (row.RowState != DataRowState.Deleted && row.Table.DataSet.EnforceConstraints)
System\Data\XmlDataLoader.cs (3)
107if (r != null && r.RowState == DataRowState.Detached) 847bool unchanged = (childRow.RowState == DataRowState.Unchanged); 1118bool unchanged = (childRow.RowState == DataRowState.Unchanged);
System\Data\xmlsaver.cs (5)
2495DataRowState state = row.RowState; 2825if (row.RowState == DataRowState.Deleted) 2904if (row.RowState == DataRowState.Deleted) 2955if (row.RowState == DataRowState.Added) 2959if (row.RowState == DataRowState.Modified)
System\Xml\DataPointer.cs (4)
117if (row.RowState == DataRowState.Deleted) 126DataRowVersion rowVersion = (row.RowState == DataRowState.Detached) ? DataRowVersion.Proposed : DataRowVersion.Current; 571DataRowVersion rowVersion = (row.RowState == DataRowState.Detached) ? DataRowVersion.Proposed : DataRowVersion.Current; 852DataRowVersion rowVersion = (row.RowState == DataRowState.Detached) ? DataRowVersion.Proposed : DataRowVersion.Current;
System\Xml\XmlDataDocument.cs (20)
134if (fAddRowsToTable && r.RowState == DataRowState.Detached) 173if (fAddRowsToTable && r.RowState == DataRowState.Detached) 655Debug.Assert(node.Row.RowState != DataRowState.Deleted); 671DataRowVersion rowVersion = (row.RowState == DataRowState.Detached) ? DataRowVersion.Proposed : DataRowVersion.Current; 1257switch (r.RowState) 1326Debug.Assert(row.RowState == DataRowState.Detached); 1337Debug.Assert(row.RowState == DataRowState.Detached); 1350Debug.Assert(row.RowState == DataRowState.Detached); 1587Debug.Assert(args.Row.RowState != DataRowState.Deleted); 1602if (row.RowState == DataRowState.Detached) 1958if (oldRowElem.Row!.RowState == DataRowState.Detached) 2033if (row.RowState == DataRowState.Detached) 2097_rollbackState = row.RowState; 2422if (row.RowState == DataRowState.Deleted) 2651return (row.RowState & (DataRowState.Added | DataRowState.Unchanged | DataRowState.Modified)) != 0; 2748DataRowState rowState = row.RowState; 2810DataRowState rowState = row.RowState; 2880Debug.Assert(row.RowState == DataRowState.Detached || row.RowState == DataRowState.Deleted); 2882if (row.RowState == DataRowState.Detached)
System\Xml\XPathNodePointer.cs (8)
329DataRowVersion rowVersion = (row.RowState == DataRowState.Detached) ? DataRowVersion.Proposed : DataRowVersion.Current; 368DataRowVersion rowVersion = (row.RowState == DataRowState.Detached) ? DataRowVersion.Proposed : DataRowVersion.Current; 543if (row.RowState == DataRowState.Deleted) 550DataRowVersion rowVersion = (row.RowState == DataRowState.Detached) ? DataRowVersion.Proposed : DataRowVersion.Current; 564if (row.RowState == DataRowState.Deleted) 570DataRowVersion rowVersion = (row.RowState == DataRowState.Detached) ? DataRowVersion.Proposed : DataRowVersion.Current; 1348DataRowVersion rowVersion = (curRow.RowState == DataRowState.Detached) ? DataRowVersion.Proposed : DataRowVersion.Current; 1660DataRowVersion rowVersion = (row.RowState == DataRowState.Detached) ? DataRowVersion.Proposed : DataRowVersion.Current;