ActionAttribute.AutoCommit Property
Specifies whether to commit the changes made to data when the Action attribute’s target method is executed.
Namespace: DevExpress.Persistent.Base
Assembly: DevExpress.ExpressApp.v24.2.dll
NuGet Package: DevExpress.ExpressApp
Declaration
Property Value
Type | Description |
---|---|
Boolean | true if data changes are to be commited; otherwise, false. |
Remarks
If the AutoCommit property is set to true, the Action Attribute (ActionAttribute) has the following behavior:
The current View is a List View
The BaseObjectSpace.CommitChanges method is automatically called after the Action attribute’s target method has been called.
The current View is a Detail View whose DetailView.ViewEditMode property is set to ViewEditMode.View
The BaseObjectSpace.CommitChanges method is automatically called after the Action attribute’s target method has been called.
Note
A Detail View’s view mode is possible in ASP.NET Web Forms applications only.
The current View is a Detail View whose DetailView.ViewEditMode property is set to ViewEditMode.Edit
The BaseObjectSpace.CommitChanges method is not called after the Action attribute’s target method has been called. The changes are marked as the changes to be committed when required.
If the AutoCommit property is set to false, the data changes performed when executing the Action attribute’s target method are not committed at once.
By default, this property is set to true.