同步BreezeJS经理||广播BreezeJS的更改 [英] Sync BreezeJS managers || Broadcast BreezeJS changes

查看:52
本文介绍了同步BreezeJS经理||广播BreezeJS的更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当BreezeJS保留更改时,会将更改传递给WebAPI控制器中的此类方法:

  [HttpPost] 
public SaveResult SaveChanges(JObject saveBundle){
SaveResult result = _contextProvider.SaveChanges(saveBundle);
的返回结果;
}

是否存在可以处理结果的转换版本的方法



就像服务器上的变量一样,是否可以用来同步其他EntityManager?



是否像Firebase,CouchDB,Derby或其他少数几个实现的一样

解决方案

否,不存在Breeze客户端EntityManager与结果的自动同步。成功保存在服务器上或数据库与客户端之间的任何形式的数据复制。您可以在我们的UserVoice 中寻求此类要求。


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?

解决方案

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.

这篇关于同步BreezeJS经理||广播BreezeJS的更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆