EFCoreObjectSpace.IsModified Property
Specifies whether objects belonging to the current Object Space are modified.
Namespace: DevExpress.ExpressApp.EFCore
Assembly: DevExpress.ExpressApp.EFCore.v24.2.dll
NuGet Package: DevExpress.ExpressApp.EFCore
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 CommitChanges). After an object has been created, modified or deleted, the IsModified property returns true. When this property’s value is changed, the ModifiedChanged event is raised.
You can change the IsModified property value via the SetModified method.
To get the list of modified objects, use the Object Space’s ModifiedObjects property.