🚀 Welcome to MDriven Learn –  Don’t miss the latest Release Notes.
OCLOperators DiscardChanges


The DiscardChanges operator iterates over a collection of objects and reverts them to their last known state from the persistence store (database). It effectively "undoes" any pending edits, additions, or deletions for the specific objects in the list.

You can use this to revert changes currently applied, like this: selfVM.DirtyList->DiscardChanges;