Back to Devexpress

NonPersistentObjectSpace.ObjectsGetting Event

expressappframework-devexpress-dot-expressapp-dot-nonpersistentobjectspace-c7562d3d.md

latest5.3 KB
Original Source

NonPersistentObjectSpace.ObjectsGetting Event

Occurs when NonPersistentObjectSpace creates a collection of non-persistent objects.

Namespace : DevExpress.ExpressApp

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public event EventHandler<ObjectsGettingEventArgs> ObjectsGetting
vb
Public Event ObjectsGetting As EventHandler(Of ObjectsGettingEventArgs)

Event Data

The ObjectsGetting event's data class is DevExpress.ExpressApp.ObjectsGettingEventArgs.

Remarks

Handle this event to supply non-persistent objects for NonPersistentObjectSpace. You can find examples on using the ObjectsGetting event in the following topics:

The following code snippets (auto-collected from DevExpress Examples) contain references to the ObjectsGetting event.

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-Filtering-Demo/CS/EFCore/NonPersistentFilteringEF.Module/BusinessObjects/Contact.cs#L49

csharp
this.objectSpace = npos;
    objectSpace.ObjectsGetting += ObjectSpace_ObjectsGetting;
}

XAF_Non-Persistent-Objects-Reloading-Demo/CS/EFCore/NonPersReloadEF/NonPersReloadEF.Module/BusinessObjects/LiveSummary.cs#L95

csharp
this.objectMap = new Dictionary<Guid, LiveSummary>();
objectSpace.ObjectsGetting += ObjectSpace_ObjectsGetting;
objectSpace.ObjectByKeyGetting += ObjectSpace_ObjectByKeyGetting;

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

csharp
this._objectSpace = npos;
_objectSpace.ObjectsGetting += ObjectSpace_ObjectsGetting;
_objectSpace.ObjectGetting += ObjectSpace_ObjectGetting;

XAF-CRUD-for-Non-Persistent-Objects-Stored-Remotely/CS/NonPersistentObjectsDemo.Module/TransientNonPersistentObjectAdapter.cs#L21

csharp
this.objectMap = objectMap;
objectSpace.ObjectsGetting += ObjectSpace_ObjectsGetting;
objectSpace.ObjectGetting += ObjectSpace_ObjectGetting;

XAF-CRUD-for-Non-Persistent-Objects-Stored-Remotely/VB/NonPersistentObjectsDemo.Module/TransientNonPersistentObjectAdapter.vb#L21

vb
Me.objectMap = objectMap
AddHandler objectSpace.ObjectsGetting, AddressOf ObjectSpace_ObjectsGetting
AddHandler objectSpace.ObjectGetting, AddressOf ObjectSpace_ObjectGetting

See Also

NonPersistentObjectSpace Class

NonPersistentObjectSpace Members

DevExpress.ExpressApp Namespace