BaseObjectSpace.IsModified Property
Specifies whether objects belonging to the current Object Space are modified.
Namespace: DevExpress.ExpressApp
Assembly: DevExpress.ExpressApp.v24.1.dll
NuGet Package: DevExpress.ExpressApp
Declaration
Property Value
Type | Description |
---|---|
Boolean | true if at least one persistent object is modified; otherwise, false. |
Remarks
An Object Space manages the state of the persistent objects which it created or retrieved. You can get this state via the IsModified property. It returns false if none of the objects have been modified since they were retrieved or committed (see BaseObjectSpace.CommitChanges). After an object has been created, modified or deleted, the IsModified property returns true. When this property’s value is changed, the BaseObjectSpace.ModifiedChanged event is raised.
You can change the IsModified property value via the BaseObjectSpace.SetModified method.
To get the list of modified objects, use the Object Space’s ModifiedObjects property (see XPObjectSpace.ModifiedObjects or EFCoreObjectSpace.ModifiedObjects) property.