Discards changes made to persistent objects and clears a list of tracked changes.
NuGet Package: DevExpress.Xpo
Call this method to discard any changes made to persistent objects after the Session.TrackingChanges property has been set to true. To retain changes and clear a list of tracked changes, call the Session.FlushChanges or Session.FlushChangesAsync method.
An object’s state, modified within a transaction, is not automatically returned to its former state by the DropChanges method call. In order to refresh the object’s state, use the XPBaseObject.Reload method.
Calling the DropChanges method sets the Session.TrackingChanges property to false. This method is automatically called when a session or unit of work rolls back a transaction.