Sync BreezeJS managers || Broadcast BreezeJS changes

狂风中的少年 提交于 2020-01-06 13:56:52

问题


When BreezeJS persists changes, it passes the changes to a method like this in the WebAPI controller:

    [HttpPost]
    public SaveResult SaveChanges(JObject saveBundle) {
        SaveResult result = _contextProvider.SaveChanges(saveBundle);
        return result;
    }

Does there exist a method which could handle a transformed version of the "result" variable above from the server, such that it could be used to synchronize other EntityManagers?

Much like how Firebase, CouchDB, Derby or a handful of others have accomplished, is there a way to bring all other managers up to speed?


回答1:


No, there is no automatic synchronization of Breeze client EntityManagers with the results of successful saves on the server nor any form of data replication between database and clients. You could ask for such thing in our UserVoice.



来源:https://stackoverflow.com/questions/19667001/sync-breezejs-managers-broadcast-breezejs-changes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!