111 references to DataRowAction
System.Data (111)
fx\src\data\System\Data\CodeGen\datacache.cs (3)
966
rowClass.Members.Add(FieldDecl(typeof(
DataRowAction
), "eventAction"));
975
constructor.Parameters.Add(ParameterDecl(typeof(
DataRowAction
), "action"));
992
rowProp = PropertyDecl(typeof(
DataRowAction
), "Action", MemberAttributes.Public | MemberAttributes.Final); {
fx\src\data\System\Data\Constraint.cs (1)
135
internal abstract void CheckConstraint(DataRow row,
DataRowAction
action);
fx\src\data\System\Data\DataColumn.cs (1)
1363
internal void CheckColumnConstraint(DataRow row,
DataRowAction
action) {
fx\src\data\System\Data\DataRow.cs (2)
30
internal
DataRowAction
_action;
958
Debug.Assert(_action==
DataRowAction
.Rollback || 0 != (DataViewRowState.Deleted & viewState), "not DataViewRowState.Deleted");
fx\src\data\System\Data\DataRowChangeEvent.cs (3)
17
private
DataRowAction
action;
24
public DataRowChangeEventArgs(DataRow row,
DataRowAction
action) {
45
public
DataRowAction
Action {
fx\src\data\System\Data\DataTable.cs (67)
2002
private void SetMergeRecords(DataRow row, int newRecord, int oldRecord,
DataRowAction
action) {
2010
Debug.Assert(action ==
DataRowAction
.Delete, "Unexpected SetNewRecord action in merge function.");
2042
SetMergeRecords(targetRow, newRecord, oldRecord,
DataRowAction
.Change);
2056
SetMergeRecords(targetRow, newRecord, oldRecord, (newRecord == -1) ?
DataRowAction
.Delete :
DataRowAction
.Change);
2060
SetMergeRecords(targetRow, newRecord, oldRecord, (newRecord == -1) ?
DataRowAction
.Delete :
DataRowAction
.Change);
2075
SetMergeRecords(targetRow, newRecord, oldRecord,
DataRowAction
.Change);
2569
SetNewRecordWorker(row, record,
DataRowAction
.Add, false, false, pos, fireEvent, out deferredException); // now we do add the row to collection before OnRowChanged (RaiseRowChanged)
2590
column.CheckColumnConstraint(row,
DataRowAction
.Add);
2670
internal void CascadeAll(DataRow row,
DataRowAction
action) {
2680
DataRowChangeEventArgs drcevent = OnRowChanging(null, row,
DataRowAction
.Commit);
2683
CascadeAll(row,
DataRowAction
.Commit);
2687
OnRowChanged(drcevent, row,
DataRowAction
.Commit);
2782
SetNewRecord(row, -1,
DataRowAction
.Delete, false, true);
3026
drcevent = RaiseRowChanging(null, row,
DataRowAction
.Add, true);
3055
EvaluateExpressions(row,
DataRowAction
.Add, null);
3057
RaiseRowChanged(drcevent, row,
DataRowAction
.Add);
3264
private DataRowChangeEventArgs OnRowChanged(DataRowChangeEventArgs args, DataRow eRow,
DataRowAction
eAction) {
3274
private DataRowChangeEventArgs OnRowChanging(DataRowChangeEventArgs args, DataRow eRow,
DataRowAction
eAction) {
3703
SetNewRecord(row, row.oldRecord,
DataRowAction
.Rollback, false, true);
3706
private DataRowChangeEventArgs RaiseRowChanged(DataRowChangeEventArgs args, DataRow eRow,
DataRowAction
eAction) {
3712
else if (
DataRowAction
.Delete == eAction && eRow.newRecord == -1 && (IsTypedDataTable || (null != onRowDeletedDelegate))) {
3730
private DataRowChangeEventArgs RaiseRowChanging(DataRowChangeEventArgs args, DataRow eRow,
DataRowAction
eAction) {
3743
else if (
DataRowAction
.Delete == eAction && eRow.newRecord != -1 && (IsTypedDataTable || (null != onRowDeletingDelegate))) {
3759
private DataRowChangeEventArgs RaiseRowChanging(DataRowChangeEventArgs args, DataRow eRow,
DataRowAction
eAction, bool fireEvent) {
3766
if (!column.Computed || eAction !=
DataRowAction
.Add) {
3784
if (!MergingData && eAction !=
DataRowAction
.Nothing && eAction !=
DataRowAction
.ChangeOriginal) {
3826
internal void SetNewRecord(DataRow row, int proposedRecord,
DataRowAction
action =
DataRowAction
.Change, bool isInMerge = false, bool fireEvent = true, bool suppressEnsurePropertyChanged = false) {
3834
private void SetNewRecordWorker(DataRow row, int proposedRecord,
DataRowAction
action, bool isInMerge, bool suppressEnsurePropertyChanged,
3883
row._action =
DataRowAction
.Nothing;
3897
if (action ==
DataRowAction
.Add) { //if we come here from insert we do insert the row to collection
3905
if ((action ==
DataRowAction
.Delete || action ==
DataRowAction
.Change)
4005
if (action !=
DataRowAction
.Add) {
4226
SetNewRecord(row, row.oldRecord,
DataRowAction
.Rollback, false, true);
4227
SetNewRecord(row, record,
DataRowAction
.Change, false, true);
4324
internal bool UpdatingCurrent(DataRow row,
DataRowAction
action) {
4325
return(action ==
DataRowAction
.Add || action ==
DataRowAction
.Change ||
4326
action ==
DataRowAction
.Rollback || action ==
DataRowAction
.ChangeOriginal ||
4327
action ==
DataRowAction
.ChangeCurrentAndOriginal);
4543
DataRowAction
action;
4548
action =
DataRowAction
.ChangeCurrentAndOriginal;
4551
action =
DataRowAction
.Add;
4600
DataRowAction
action =
DataRowAction
.Nothing;
4606
action =
DataRowAction
.ChangeCurrentAndOriginal;
4614
action =
DataRowAction
.Change;
4623
action =
DataRowAction
.Change;
4630
action =
DataRowAction
.ChangeCurrentAndOriginal;
4633
action =
DataRowAction
.ChangeOriginal;
4643
if (action ==
DataRowAction
.Nothing) { // RaiseRowChanging does not fire for DataRowAction.Nothing
4683
this.SetNewRecord(dataRow, recordNo,
DataRowAction
.Change, false, false);
4688
this.SetNewRecord(dataRow, recordNo,
DataRowAction
.Change, false, false);
4696
this.SetNewRecord(dataRow, recordNo,
DataRowAction
.Change, false, false);
4704
this.SetNewRecord(dataRow, recordNo,
DataRowAction
.Change, false, false);
4730
if (action ==
DataRowAction
.Nothing) { // RaiseRowChanged does not fire for DataRowAction.Nothing
6187
internal void EvaluateExpressions(DataRow row,
DataRowAction
action, List<DataRow> cachedRows) {
6189
if (action ==
DataRowAction
.Add ||
6190
action ==
DataRowAction
.Change||
6191
(action ==
DataRowAction
.Rollback && (row.oldRecord!=-1 || row.newRecord!=-1))) {
6204
else if ((action ==
DataRowAction
.Delete || (action==
DataRowAction
.Rollback && row.oldRecord==-1 && row.newRecord==-1)) && dependentColumns != null) {
fx\src\data\System\Data\DataTableReader.cs (4)
801
case
DataRowAction
.Add:
815
case
DataRowAction
.Delete: // delete
816
case
DataRowAction
.Rollback:// rejectchanges
817
case
DataRowAction
.Commit: // acceptchanges
fx\src\data\System\Data\Filter\AggregateNode.cs (2)
181
if (
DataRowAction
.Rollback != rows[i]._action) {
187
else if ((
DataRowAction
.Rollback == rows[i]._action) && (rows[i].RowState == DataRowState.Added)) {
fx\src\data\System\Data\ForeignKeyConstraint.cs (12)
466
internal void CheckCascade(DataRow row,
DataRowAction
action) {
474
if (action ==
DataRowAction
.Change) {
479
else if (action ==
DataRowAction
.Delete) {
482
else if (action ==
DataRowAction
.Commit) {
485
else if (action ==
DataRowAction
.Rollback) {
488
else if (action ==
DataRowAction
.Add) {
499
internal override void CheckConstraint(DataRow childRow,
DataRowAction
action) {
500
if ((action ==
DataRowAction
.Change ||
501
action ==
DataRowAction
.Add ||
502
action ==
DataRowAction
.Rollback) &&
507
DataRowVersion version = (action ==
DataRowAction
.Rollback) ? DataRowVersion.Original : DataRowVersion.Current;
514
object[] parentKeyValues = parentRow.GetKeyValues(parentKey, action ==
DataRowAction
.Rollback ? version : DataRowVersion.Default);
fx\src\data\System\Data\Merger.cs (1)
261
targetRow.Table.EvaluateExpressions(targetRow,
DataRowAction
.Change, null);
fx\src\data\System\Data\UniqueConstraint.cs (4)
235
internal override void CheckConstraint(DataRow row,
DataRowAction
action) {
237
(action ==
DataRowAction
.Add ||
238
action ==
DataRowAction
.Change ||
239
(action ==
DataRowAction
.Rollback && row.tempRecord != -1))) {
fx\src\data\System\NewXml\XmlDataDocument.cs (11)
1788
case
DataRowAction
.Add:
1801
case
DataRowAction
.Delete:
1805
case
DataRowAction
.Rollback:
1822
case
DataRowAction
.Change:
1826
case
DataRowAction
.Commit:
1846
if ( args.Action ==
DataRowAction
.Delete && row.Element != null ) {
1867
case
DataRowAction
.Add:
1871
case
DataRowAction
.Delete:
1879
case
DataRowAction
.Rollback:
1909
case
DataRowAction
.Change:
1933
case
DataRowAction
.Commit: