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