Breezejs SaveChanges: is it possible to return a custom SaveResult object, somehow?
问题 Say I have a movie entity, with an average score. A user can rate a movie, and for that I call datacontext.savechanges on the client, sending a Rating object to the server. On the server, the SaveChanges method is called, and in the BeforeSaveEntity method, I adapt the movie's average score. Here's the question: how to return that average score from the server's SaveChanges method, for example inside the SaveResult object? I thought I could add the movie entity to the SaveResult Entities list