I have the following module (pseudo code below) which saves data back to the server using Breeze.
datacontext{
...
function saveChanges() {
if (manager.hasChanges()) {
return manager.saveChanges()
.then(saveSucceeded)
.fail(saveFailed);
}
return Q.resolve();
function saveSucceeded(data) {
}
function saveFailed(data) {
}
}
...
}
I am capturing the changes that have been saved for some further processing:
datacontext.saveChanges().then(processChanges)
Is it possible to get which properties of a given entity have changed after a save?