109 references to DataRowAction
netstandard (1)
netstandard.cs (1)
495
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.
DataRowAction
))]
System.Data (1)
src\libraries\shims\System.Data\ref\System.Data.cs (1)
68
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.
DataRowAction
))]
System.Data.Common (107)
System\Data\Constraint.cs (1)
110
internal abstract void CheckConstraint(DataRow row,
DataRowAction
action);
System\Data\DataColumn.cs (1)
1364
internal void CheckColumnConstraint(DataRow row,
DataRowAction
action)
System\Data\DataRow.cs (2)
25
internal
DataRowAction
_action;
1038
Debug.Assert(_action ==
DataRowAction
.Rollback || 0 != (DataViewRowState.Deleted & viewState), "not DataViewRowState.Deleted");
System\Data\DataRowChangeEvent.cs (2)
11
public DataRowChangeEventArgs(DataRow row,
DataRowAction
action)
25
public
DataRowAction
Action { get; }
System\Data\DataTable.cs (67)
2151
private void SetMergeRecords(DataRow row, int newRecord, int oldRecord,
DataRowAction
action)
2163
Debug.Assert(action ==
DataRowAction
.Delete, "Unexpected SetNewRecord action in merge function.");
2201
SetMergeRecords(targetRow, newRecord, oldRecord,
DataRowAction
.Change);
2218
SetMergeRecords(targetRow, newRecord, oldRecord, (newRecord == -1) ?
DataRowAction
.Delete :
DataRowAction
.Change);
2224
SetMergeRecords(targetRow, newRecord, oldRecord, (newRecord == -1) ?
DataRowAction
.Delete :
DataRowAction
.Change);
2242
SetMergeRecords(targetRow, newRecord, oldRecord,
DataRowAction
.Change);
2786
SetNewRecordWorker(row, record,
DataRowAction
.Add, false, false, pos, fireEvent, out deferredException); // now we do add the row to collection before OnRowChanged (RaiseRowChanged)
2813
column.CheckColumnConstraint(row,
DataRowAction
.Add);
2895
internal void CascadeAll(DataRow row,
DataRowAction
action)
2909
DataRowChangeEventArgs? drcevent = OnRowChanging(null, row,
DataRowAction
.Commit);
2913
CascadeAll(row,
DataRowAction
.Commit);
2918
OnRowChanged(drcevent, row,
DataRowAction
.Commit);
3027
SetNewRecord(row, -1,
DataRowAction
.Delete, false, true);
3323
drcevent = RaiseRowChanging(null, row,
DataRowAction
.Add, true);
3360
EvaluateExpressions(row,
DataRowAction
.Add, null);
3363
RaiseRowChanged(drcevent, row,
DataRowAction
.Add);
3591
private DataRowChangeEventArgs? OnRowChanged(DataRowChangeEventArgs? args, DataRow eRow,
DataRowAction
eAction)
3604
private DataRowChangeEventArgs? OnRowChanging(DataRowChangeEventArgs? args, DataRow eRow,
DataRowAction
eAction)
4110
SetNewRecord(row, row._oldRecord,
DataRowAction
.Rollback, false, true);
4113
private DataRowChangeEventArgs? RaiseRowChanged(DataRowChangeEventArgs? args, DataRow eRow,
DataRowAction
eAction)
4122
else if (
DataRowAction
.Delete == eAction && eRow._newRecord == -1 && (IsTypedDataTable || (null != _onRowDeletedDelegate)))
4138
private DataRowChangeEventArgs? RaiseRowChanging(DataRowChangeEventArgs? args, DataRow eRow,
DataRowAction
eAction)
4155
else if (
DataRowAction
.Delete == eAction && eRow._newRecord != -1 && (IsTypedDataTable || (null != _onRowDeletingDelegate)))
4175
private DataRowChangeEventArgs? RaiseRowChanging(DataRowChangeEventArgs? args, DataRow eRow,
DataRowAction
eAction, bool fireEvent)
4184
if (!column.Computed || eAction !=
DataRowAction
.Add)
4205
if (!MergingData && eAction !=
DataRowAction
.Nothing && eAction !=
DataRowAction
.ChangeOriginal)
4257
internal void SetNewRecord(DataRow row, int proposedRecord,
DataRowAction
action =
DataRowAction
.Change, bool isInMerge = false, bool fireEvent = true, bool suppressEnsurePropertyChanged = false)
4267
private void SetNewRecordWorker(DataRow row, int proposedRecord,
DataRowAction
action, bool isInMerge, bool suppressEnsurePropertyChanged,
4323
row._action =
DataRowAction
.Nothing;
4337
if (action ==
DataRowAction
.Add)
4351
if ((action ==
DataRowAction
.Delete || action ==
DataRowAction
.Change) &&
4460
if (action !=
DataRowAction
.Add)
4706
SetNewRecord(row, row._oldRecord,
DataRowAction
.Rollback, false, true);
4708
SetNewRecord(row, record,
DataRowAction
.Change, false, true);
4823
internal static bool UpdatingCurrent(
DataRowAction
action)
4825
return (action ==
DataRowAction
.Add || action ==
DataRowAction
.Change ||
4826
action ==
DataRowAction
.Rollback || action ==
DataRowAction
.ChangeOriginal ||
4827
action ==
DataRowAction
.ChangeCurrentAndOriginal);
5077
DataRowAction
action;
5083
action =
DataRowAction
.ChangeCurrentAndOriginal;
5086
action =
DataRowAction
.Add;
5141
DataRowAction
action =
DataRowAction
.Nothing;
5148
action =
DataRowAction
.ChangeCurrentAndOriginal;
5159
action =
DataRowAction
.Change;
5168
action =
DataRowAction
.Change;
5175
DataRowState.Unchanged =>
DataRowAction
.ChangeCurrentAndOriginal,
5176
_ =>
DataRowAction
.ChangeOriginal,
5186
if (action ==
DataRowAction
.Nothing)
5239
SetNewRecord(dataRow, recordNo,
DataRowAction
.Change, false, false);
5245
SetNewRecord(dataRow, recordNo,
DataRowAction
.Change, false, false);
5255
SetNewRecord(dataRow, recordNo,
DataRowAction
.Change, false, false);
5263
SetNewRecord(dataRow, recordNo,
DataRowAction
.Change, false, false);
5297
if (action ==
DataRowAction
.Nothing)
6988
internal void EvaluateExpressions(DataRow row,
DataRowAction
action, List<DataRow>? cachedRows)
6991
if (action ==
DataRowAction
.Add ||
6992
action ==
DataRowAction
.Change ||
6993
(action ==
DataRowAction
.Rollback && (row._oldRecord != -1 || row._newRecord != -1)))
7010
else if ((action ==
DataRowAction
.Delete || (action ==
DataRowAction
.Rollback && row._oldRecord == -1 && row._newRecord == -1)) && _dependentColumns != null)
System\Data\DataTableReader.cs (4)
950
case
DataRowAction
.Add:
958
case
DataRowAction
.Delete: // delete
959
case
DataRowAction
.Rollback:// rejectchanges
960
case
DataRowAction
.Commit: // acceptchanges
System\Data\Filter\AggregateNode.cs (2)
203
if (
DataRowAction
.Rollback != rows[i]._action)
210
else if ((
DataRowAction
.Rollback == rows[i]._action) && (rows[i].RowState == DataRowState.Added))
System\Data\ForeignKeyConstraint.cs (12)
518
internal void CheckCascade(DataRow row,
DataRowAction
action)
530
if (action ==
DataRowAction
.Change)
537
else if (action ==
DataRowAction
.Delete)
541
else if (action ==
DataRowAction
.Commit)
545
else if (action ==
DataRowAction
.Rollback)
549
else if (action ==
DataRowAction
.Add)
563
internal override void CheckConstraint(DataRow childRow,
DataRowAction
action)
565
if ((action ==
DataRowAction
.Change ||
566
action ==
DataRowAction
.Add ||
567
action ==
DataRowAction
.Rollback) &&
572
DataRowVersion version = (action ==
DataRowAction
.Rollback) ? DataRowVersion.Original : DataRowVersion.Current;
581
object[] parentKeyValues = parentRow.GetKeyValues(_parentKey, action ==
DataRowAction
.Rollback ? version : DataRowVersion.Default);
System\Data\Merger.cs (1)
304
targetRow.Table.EvaluateExpressions(targetRow,
DataRowAction
.Change, null);
System\Data\UniqueConstraint.cs (4)
248
internal override void CheckConstraint(DataRow row,
DataRowAction
action)
251
(action ==
DataRowAction
.Add ||
252
action ==
DataRowAction
.Change ||
253
(action ==
DataRowAction
.Rollback && row._tempRecord != -1)))
System\Xml\XmlDataDocument.cs (11)
2002
case
DataRowAction
.Add:
2006
case
DataRowAction
.Delete:
2010
case
DataRowAction
.Rollback:
2028
case
DataRowAction
.Change:
2032
case
DataRowAction
.Commit:
2054
if (args.Action ==
DataRowAction
.Delete && row.Element != null)
2079
case
DataRowAction
.Add:
2083
case
DataRowAction
.Delete:
2091
case
DataRowAction
.Rollback:
2122
case
DataRowAction
.Change:
2147
case
DataRowAction
.Commit: