Back to Devexpress

BaseObjectSpace.Reloaded Event

expressappframework-devexpress-dot-expressapp-dot-baseobjectspace-4603dd1d.md

latest5.0 KB
Original Source

BaseObjectSpace.Reloaded Event

Occurs when the BaseObjectSpace.Rollback or BaseObjectSpace.Refresh method is called.

Namespace : DevExpress.ExpressApp

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public event EventHandler Reloaded
vb
Public Event Reloaded As EventHandler

Event Data

The Reloaded event's data class is EventArgs.

Remarks

In XPObjectSpace, this event is raised when the XPObjectSpace.Session object is recreated. In EFCoreObjectSpace, this event is raised when the EFCoreObjectSpace.DbContext is recreated.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Reloaded 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-Reloading-Demo/CS/EFCore/NonPersReloadEF/NonPersReloadEF.Module/BusinessObjects/LiveSummary.cs#L98

csharp
objectSpace.ObjectGetting += ObjectSpace_ObjectGetting;
    objectSpace.Reloaded += ObjectSpace_Reloaded;
}

XAF_Non-Persistent-Objects-Edit-Linked-Persistent-Objects-Demo/CS/EFCore/NonPersistentEditEF/NonPersistentEditEF.Module/BusinessObjects/ProductViewAdapter.cs#L11

csharp
objectSpace.ObjectGetting += ObjectSpace_ObjectGetting;
objectSpace.Reloaded += ObjectSpace_Reloaded;
objectSpace.ModifiedChanging += ObjectSpace_ModifiedChanging;

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

csharp
objectSpace.ObjectByKeyGetting += ObjectSpace_ObjectByKeyGetting;
objectSpace.Reloaded += ObjectSpace_Reloaded;
objectSpace.CustomCommitChanges += ObjectSpace_CustomCommitChanges;

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

csharp
_objectSpace.ObjectByKeyGetting += ObjectSpace_ObjectByKeyGetting;
_objectSpace.Reloaded += ObjectSpace_Reloaded;
_objectSpace.ObjectReloading += ObjectSpace_ObjectReloading;

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

vb
AddHandler objectSpace.ObjectByKeyGetting, AddressOf ObjectSpace_ObjectByKeyGetting
AddHandler objectSpace.Reloaded, AddressOf ObjectSpace_Reloaded
AddHandler objectSpace.CustomCommitChanges, AddressOf ObjectSpace_CustomCommitChanges

Implements

Reloaded

See Also

BaseObjectSpace Class

BaseObjectSpace Members

DevExpress.ExpressApp Namespace