Back to Devexpress

NonPersistentObjectSpace.ModifiedObjects Property

expressappframework-devexpress-dot-expressapp-dot-nonpersistentobjectspace-2c638d98.md

latest3.3 KB
Original Source

NonPersistentObjectSpace.ModifiedObjects Property

Gets a list of non-persistent objects modified within the current NonPersistentObjectSpace.

Namespace : DevExpress.ExpressApp

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public override IList ModifiedObjects { get; }
vb
Public Overrides ReadOnly Property ModifiedObjects As IList

Property Value

TypeDescription
IList

An IList of modified objects.

|

Remarks

The New , Delete and Save Actions are available for non-persistent objects. The ModifiedObjects property provides access to all created, deleted and modified objects within a NonPersistentObjectSpace, unless the IObjectSpace.CommitChanges, IObjectSpace.Refresh or IObjectSpace.Rollback methods are called. An example is provided in the How to: Perform CRUD Operations with Non-Persistent Objects topic.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ModifiedObjects property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

XAF_Non-Persistent-Objects-Nested-In-Persistent-Objects-Demo/CS/XPO/NonPersistentDemo/NonPersistentDemo.Module/BusinessObjects/NonPersistentObjectAdapter.cs#L156

csharp
var list = new List<TObject>();
foreach(var obj in _objectSpace.ModifiedObjects) {
    if(obj is TObject) {

See Also

NonPersistentObjectSpace Class

NonPersistentObjectSpace Members

DevExpress.ExpressApp Namespace