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)
110internal abstract void CheckConstraint(DataRow row, DataRowAction action);
System\Data\DataColumn.cs (1)
1363internal void CheckColumnConstraint(DataRow row, DataRowAction action)
System\Data\DataRow.cs (2)
25internal DataRowAction _action; 1038Debug.Assert(_action == DataRowAction.Rollback || 0 != (DataViewRowState.Deleted & viewState), "not DataViewRowState.Deleted");
System\Data\DataRowChangeEvent.cs (2)
11public DataRowChangeEventArgs(DataRow row, DataRowAction action) 25public DataRowAction Action { get; }
System\Data\DataTable.cs (67)
2146private void SetMergeRecords(DataRow row, int newRecord, int oldRecord, DataRowAction action) 2158Debug.Assert(action == DataRowAction.Delete, "Unexpected SetNewRecord action in merge function."); 2196SetMergeRecords(targetRow, newRecord, oldRecord, DataRowAction.Change); 2213SetMergeRecords(targetRow, newRecord, oldRecord, (newRecord == -1) ? DataRowAction.Delete : DataRowAction.Change); 2219SetMergeRecords(targetRow, newRecord, oldRecord, (newRecord == -1) ? DataRowAction.Delete : DataRowAction.Change); 2237SetMergeRecords(targetRow, newRecord, oldRecord, DataRowAction.Change); 2781SetNewRecordWorker(row, record, DataRowAction.Add, false, false, pos, fireEvent, out deferredException); // now we do add the row to collection before OnRowChanged (RaiseRowChanged) 2808column.CheckColumnConstraint(row, DataRowAction.Add); 2890internal void CascadeAll(DataRow row, DataRowAction action) 2904DataRowChangeEventArgs? drcevent = OnRowChanging(null, row, DataRowAction.Commit); 2908CascadeAll(row, DataRowAction.Commit); 2913OnRowChanged(drcevent, row, DataRowAction.Commit); 3022SetNewRecord(row, -1, DataRowAction.Delete, false, true); 3318drcevent = RaiseRowChanging(null, row, DataRowAction.Add, true); 3355EvaluateExpressions(row, DataRowAction.Add, null); 3358RaiseRowChanged(drcevent, row, DataRowAction.Add); 3586private DataRowChangeEventArgs? OnRowChanged(DataRowChangeEventArgs? args, DataRow eRow, DataRowAction eAction) 3599private DataRowChangeEventArgs? OnRowChanging(DataRowChangeEventArgs? args, DataRow eRow, DataRowAction eAction) 4105SetNewRecord(row, row._oldRecord, DataRowAction.Rollback, false, true); 4108private DataRowChangeEventArgs? RaiseRowChanged(DataRowChangeEventArgs? args, DataRow eRow, DataRowAction eAction) 4117else if (DataRowAction.Delete == eAction && eRow._newRecord == -1 && (IsTypedDataTable || (null != _onRowDeletedDelegate))) 4133private DataRowChangeEventArgs? RaiseRowChanging(DataRowChangeEventArgs? args, DataRow eRow, DataRowAction eAction) 4150else if (DataRowAction.Delete == eAction && eRow._newRecord != -1 && (IsTypedDataTable || (null != _onRowDeletingDelegate))) 4170private DataRowChangeEventArgs? RaiseRowChanging(DataRowChangeEventArgs? args, DataRow eRow, DataRowAction eAction, bool fireEvent) 4179if (!column.Computed || eAction != DataRowAction.Add) 4200if (!MergingData && eAction != DataRowAction.Nothing && eAction != DataRowAction.ChangeOriginal) 4252internal void SetNewRecord(DataRow row, int proposedRecord, DataRowAction action = DataRowAction.Change, bool isInMerge = false, bool fireEvent = true, bool suppressEnsurePropertyChanged = false) 4262private void SetNewRecordWorker(DataRow row, int proposedRecord, DataRowAction action, bool isInMerge, bool suppressEnsurePropertyChanged, 4318row._action = DataRowAction.Nothing; 4332if (action == DataRowAction.Add) 4346if ((action == DataRowAction.Delete || action == DataRowAction.Change) && 4455if (action != DataRowAction.Add) 4701SetNewRecord(row, row._oldRecord, DataRowAction.Rollback, false, true); 4703SetNewRecord(row, record, DataRowAction.Change, false, true); 4818internal static bool UpdatingCurrent(DataRowAction action) 4820return (action == DataRowAction.Add || action == DataRowAction.Change || 4821action == DataRowAction.Rollback || action == DataRowAction.ChangeOriginal || 4822action == DataRowAction.ChangeCurrentAndOriginal); 5072DataRowAction action; 5078action = DataRowAction.ChangeCurrentAndOriginal; 5081action = DataRowAction.Add; 5136DataRowAction action = DataRowAction.Nothing; 5143action = DataRowAction.ChangeCurrentAndOriginal; 5154action = DataRowAction.Change; 5163action = DataRowAction.Change; 5170DataRowState.Unchanged => DataRowAction.ChangeCurrentAndOriginal, 5171_ => DataRowAction.ChangeOriginal, 5181if (action == DataRowAction.Nothing) 5234SetNewRecord(dataRow, recordNo, DataRowAction.Change, false, false); 5240SetNewRecord(dataRow, recordNo, DataRowAction.Change, false, false); 5250SetNewRecord(dataRow, recordNo, DataRowAction.Change, false, false); 5258SetNewRecord(dataRow, recordNo, DataRowAction.Change, false, false); 5292if (action == DataRowAction.Nothing) 6929internal void EvaluateExpressions(DataRow row, DataRowAction action, List<DataRow>? cachedRows) 6932if (action == DataRowAction.Add || 6933action == DataRowAction.Change || 6934(action == DataRowAction.Rollback && (row._oldRecord != -1 || row._newRecord != -1))) 6951else if ((action == DataRowAction.Delete || (action == DataRowAction.Rollback && row._oldRecord == -1 && row._newRecord == -1)) && _dependentColumns != null)
System\Data\DataTableReader.cs (4)
950case DataRowAction.Add: 958case DataRowAction.Delete: // delete 959case DataRowAction.Rollback:// rejectchanges 960case DataRowAction.Commit: // acceptchanges
System\Data\Filter\AggregateNode.cs (2)
203if (DataRowAction.Rollback != rows[i]._action) 210else if ((DataRowAction.Rollback == rows[i]._action) && (rows[i].RowState == DataRowState.Added))
System\Data\ForeignKeyConstraint.cs (12)
518internal void CheckCascade(DataRow row, DataRowAction action) 530if (action == DataRowAction.Change) 537else if (action == DataRowAction.Delete) 541else if (action == DataRowAction.Commit) 545else if (action == DataRowAction.Rollback) 549else if (action == DataRowAction.Add) 563internal override void CheckConstraint(DataRow childRow, DataRowAction action) 565if ((action == DataRowAction.Change || 566action == DataRowAction.Add || 567action == DataRowAction.Rollback) && 572DataRowVersion version = (action == DataRowAction.Rollback) ? DataRowVersion.Original : DataRowVersion.Current; 581object[] parentKeyValues = parentRow.GetKeyValues(_parentKey, action == DataRowAction.Rollback ? version : DataRowVersion.Default);
System\Data\Merger.cs (1)
304targetRow.Table.EvaluateExpressions(targetRow, DataRowAction.Change, null);
System\Data\UniqueConstraint.cs (4)
248internal override void CheckConstraint(DataRow row, DataRowAction action) 251(action == DataRowAction.Add || 252action == DataRowAction.Change || 253(action == DataRowAction.Rollback && row._tempRecord != -1)))
System\Xml\XmlDataDocument.cs (11)
2030case DataRowAction.Add: 2034case DataRowAction.Delete: 2038case DataRowAction.Rollback: 2056case DataRowAction.Change: 2060case DataRowAction.Commit: 2083if (args.Action == DataRowAction.Delete && row.Element != null) 2108case DataRowAction.Add: 2112case DataRowAction.Delete: 2120case DataRowAction.Rollback: 2151case DataRowAction.Change: 2176case DataRowAction.Commit: