116 references to RowState
System.Data (111)
fx\src\data\System\Data\Common\AdapterUtil.cs (5)
2335
switch(dataRow.
RowState
) {
2346
Debug.Assert(0 == (rowStates & dataRow.
RowState
), "flagged RowState");
2357
switch(dataRow.
RowState
) {
2368
Debug.Assert(0 == (rowStates & dataRow.
RowState
), "flagged RowState");
2376
if (0 != (dataRow.
RowState
& rowStates)) {
fx\src\data\System\Data\Common\DbDataAdapter.cs (6)
854
switch (dataRow.
RowState
) {
872
throw ADP.InvalidDataRowState(dataRow.
RowState
); // out of Update without completing batch
913
if (DataRowState.Unchanged == dataRow.
RowState
) { // MDAC 66286
919
if (DataRowState.Unchanged == dataRow.
RowState
) { // MDAC 66286
1389
if (0 != ((DataRowState.Added|DataRowState.Deleted|DataRowState.Modified)&row.
RowState
)) {
1450
if (0 != ((DataRowState.Detached|DataRowState.Unchanged) & row.
RowState
)) {
fx\src\data\System\Data\DataColumn.cs (1)
1404
if (dr.
RowState
== DataRowState.Deleted)
fx\src\data\System\Data\DataRow.cs (8)
495
if (this.
RowState
!= DataRowState.Detached && this.
RowState
!= DataRowState.Deleted) {
1089
if (this.
RowState
!= DataRowState.Detached) {
1094
if (this.
RowState
!= DataRowState.Deleted)
1108
if (this.
RowState
!= DataRowState.Deleted)
1246
if (this.
RowState
== DataRowState.Unchanged) {
1255
if (this.
RowState
== DataRowState.Unchanged) {
1280
DataRowState state =
RowState
;
fx\src\data\System\Data\DataRowCollection.cs (4)
101
if ((null == row) || (row.Table != this.table) || ((0 == row.RBTreeNodeId) && (row.
RowState
== DataRowState.Detached))) //Webdata 102857
207
if ((row.
RowState
!= DataRowState.Deleted) && (row.
RowState
!= DataRowState.Detached))
210
if (row.
RowState
!= DataRowState.Detached)
fx\src\data\System\Data\DataSet.cs (3)
1315
DataRowState rowState = row.
RowState
;
1347
if (DataRowState.Deleted != relatedRow.
RowState
) {
1464
if ((row.
RowState
& rowStates) != 0) {
fx\src\data\System\Data\DataTable.cs (25)
636
DataRowState rowState = row.
RowState
;
2033
DataRowState saveRowState = targetRow.
RowState
;
2037
if (targetRow.
RowState
== DataRowState.Unchanged && row.
RowState
== DataRowState.Unchanged) {
2048
newRecord = (targetRow.
RowState
== DataRowState.Unchanged)? recordManager.CopyRecord(this, oldRecord, -1) : targetRow.newRecord;
2067
if (targetRow.
RowState
== DataRowState.Unchanged) {
2869
if ((row.
RowState
& rowStates) != 0)
2968
if (row.
RowState
!= DataRowState.Unchanged) { // not unchanged, it means Added or modified
3046
if (row.
RowState
== DataRowState.Unchanged){ // how about row.oldRecord == row.newRecord both == -1
3893
(row.
RowState
!= DataRowState.Unchanged ?
3994
if (row.
RowState
== DataRowState.Detached && row.rowID != -1) {
4082
if (row.
RowState
== DataRowState.Detached && row.rowID != -1) {
4225
if (row.
RowState
== DataRowState.Deleted)
4527
if (loadOption != LoadOption.Upsert || dataRow.
RowState
!= DataRowState.Deleted) {
4609
switch(dataRow.
RowState
) {
4628
switch(dataRow.
RowState
) {
4655
if (DataRowState.Detached == dataRow.
RowState
) {
4687
if (dataRow.
RowState
== DataRowState.Unchanged) {
4694
if (dataRow.
RowState
== DataRowState.Deleted)
4700
if (dataRow.
RowState
== DataRowState.Unchanged) {
6327
if (dr.
RowState
== DataRowState.Deleted) {
6341
if (row.
RowState
== DataRowState.Deleted) {
6367
if (cachedRow != null && ((cachedRow.
RowState
!= DataRowState.Deleted) && (version != DataRowVersion.Original || cachedRow.oldRecord != -1))) {// if deleted GetRecordFromVersion will throw
6385
if (parentRow != null && ((parentRow.
RowState
!= DataRowState.Deleted) && (version != DataRowVersion.Original || parentRow.oldRecord != -1))) {// if deleted GetRecordFromVersion will throw
6402
if (childRow != null && ((childRow.
RowState
!= DataRowState.Deleted) && (version != DataRowVersion.Original || childRow.oldRecord != -1))) { // if deleted GetRecordFromVersion will throw
fx\src\data\System\Data\DataTableReader.cs (6)
197
while (currentDataRow.
RowState
== DataRowState.Deleted) {
247
if ((currentDataRow == null) || (currentDataRow.
RowState
== DataRowState.Deleted)) {
265
if ((currentDataRow == null) || (currentDataRow.
RowState
== DataRowState.Deleted)) {
757
if ((currentDataRow.
RowState
== DataRowState.Deleted) || (currentDataRow.
RowState
== DataRowState.Detached) ||currentRowRemoved)
818
if ( args.Row.
RowState
== DataRowState.Detached ) {
fx\src\data\System\Data\DataView.cs (2)
841
if (DataRowState.Detached == newRow.
RowState
) {
922
if ((null != index) && (DataRowState.Detached != rowview.Row.
RowState
)) {
fx\src\data\System\Data\Filter\AggregateNode.cs (2)
180
if (rows[i].
RowState
== DataRowState.Deleted) {
187
else if ((DataRowAction.Rollback == rows[i]._action) && (rows[i].
RowState
== DataRowState.Added)) {
fx\src\data\System\Data\Filter\DataExpression.cs (1)
153
if (row.
RowState
== DataRowState.Deleted)
fx\src\data\System\Data\ForeignKeyConstraint.cs (7)
236
if (row.
RowState
== DataRowState.Detached)
239
Index childIndex = childKey.GetSortIndex( row.
RowState
== DataRowState.Deleted ? DataViewRowState.Deleted : DataViewRowState.CurrentRows );
240
object[] key = row.GetKeyValues(parentKey, row.
RowState
== DataRowState.Deleted ? DataRowVersion.Original : DataRowVersion.Default );
252
if (DataRowState.Detached != childRow.
RowState
) {
343
Index childIndex = childKey.GetSortIndex( row.
RowState
== DataRowState.Deleted ? DataViewRowState.OriginalRows : DataViewRowState.CurrentRows);
344
object[] key = row.GetKeyValues(parentKey, row.
RowState
== DataRowState.Modified ? DataRowVersion.Current : DataRowVersion.Default );
364
if (row.
RowState
!= DataRowState.Deleted && row.Table.DataSet.EnforceConstraints) {
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (1)
1048
} while ((_currentRow.
RowState
& _rowStateToSkip) != 0); // repeat if there is an unexpected rowstate
fx\src\data\System\Data\XmlDataLoader.cs (3)
101
if (r != null && r.
RowState
== DataRowState.Detached) {
797
bool unchanged = (childRow.
RowState
== DataRowState.Unchanged);
1051
bool unchanged = (childRow.
RowState
== DataRowState.Unchanged);
fx\src\data\System\Data\xmlsaver.cs (5)
2155
DataRowState state = row.
RowState
;
2442
if (row.
RowState
== DataRowState.Deleted)
2506
if (row.
RowState
== DataRowState.Deleted)
2549
if (row.
RowState
== DataRowState.Added) {
2552
if (row.
RowState
== DataRowState.Modified) {
fx\src\data\System\NewXml\DataPointer.cs (4)
114
if (row.
RowState
== DataRowState.Deleted)
121
DataRowVersion rowVersion = ( row.
RowState
== DataRowState.Detached ) ? DataRowVersion.Proposed : DataRowVersion.Current;
461
DataRowVersion rowVersion = ( row.
RowState
== DataRowState.Detached ) ? DataRowVersion.Proposed : DataRowVersion.Current;
679
DataRowVersion rowVersion = ( row.
RowState
== DataRowState.Detached ) ? DataRowVersion.Proposed : DataRowVersion.Current;
fx\src\data\System\NewXml\XmlDataDocument.cs (20)
127
if ( fAddRowsToTable && r.
RowState
== DataRowState.Detached )
162
if ( fAddRowsToTable && r.
RowState
== DataRowState.Detached )
597
Debug.Assert( node.Row.
RowState
!= DataRowState.Deleted );
612
DataRowVersion rowVersion = ( row.
RowState
== DataRowState.Detached ) ? DataRowVersion.Proposed : DataRowVersion.Current;
1132
switch ( r.
RowState
) {
1196
Debug.Assert( row.
RowState
== DataRowState.Detached );
1205
Debug.Assert( row.
RowState
== DataRowState.Detached );
1216
Debug.Assert( row.
RowState
== DataRowState.Detached );
1417
Debug.Assert( args.Row.
RowState
!= DataRowState.Deleted );
1432
if ( row.
RowState
== DataRowState.Detached ) {
1749
if ( oldRowElem.Row.
RowState
== DataRowState.Detached )
1827
if ( row.
RowState
== DataRowState.Detached ) {
1885
rollbackState = row.
RowState
;
2181
if ( row.
RowState
== DataRowState.Deleted )
2378
return ( row.
RowState
& ( DataRowState.Added | DataRowState.Unchanged | DataRowState.Modified ) ) != 0;
2461
DataRowState rowState = row.
RowState
;
2520
DataRowState rowState = row.
RowState
;
2587
Debug.Assert( row.
RowState
== DataRowState.Detached || row.
RowState
== DataRowState.Deleted );
2589
if ( row.
RowState
== DataRowState.Detached )
fx\src\data\System\NewXml\XPathNodePointer.cs (8)
298
DataRowVersion rowVersion = ( row.
RowState
== DataRowState.Detached ) ? DataRowVersion.Proposed : DataRowVersion.Current;
332
DataRowVersion rowVersion = ( row.
RowState
== DataRowState.Detached ) ? DataRowVersion.Proposed : DataRowVersion.Current;
509
if (row.
RowState
== DataRowState.Deleted)
516
DataRowVersion rowVersion = ( row.
RowState
== DataRowState.Detached ) ? DataRowVersion.Proposed : DataRowVersion.Current;
529
if (row.
RowState
== DataRowState.Deleted)
536
DataRowVersion rowVersion = ( row.
RowState
== DataRowState.Detached ) ? DataRowVersion.Proposed : DataRowVersion.Current;
1213
DataRowVersion rowVersion = ( curRow.
RowState
== DataRowState.Detached ) ? DataRowVersion.Proposed : DataRowVersion.Current;
1490
DataRowVersion rowVersion = ( row.
RowState
== DataRowState.Detached ) ? DataRowVersion.Proposed : DataRowVersion.Current;
System.Data.DataSetExtensions (5)
System\Data\DataRowComparer.cs (3)
167
if (leftRow.
RowState
== DataRowState.Deleted || rightRow.
RowState
== DataRowState.Deleted)
201
if (row.
RowState
== DataRowState.Deleted)
System\Data\DataTableExtensions.cs (2)
184
switch(current.
RowState
)
208
throw DataSetUtil.InvalidDataRowState(current.
RowState
);