同步框架 [英] Sync Framework

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

问题描述

我们需要使用服务器数据每15秒刷新客户端仪表板(Windows应用程序)。

We need to refresh the client dashboard(windows application) for every 15 seconds with server data.

服务器每15秒获取一次数据(可能是1000条记录)。

Server gets data every 15 seconds(may be 1000 records).

这个插入的数据需要在每个客户端更新。

This inserted data need to update in each client.

所以,我们有决定使用同步框架将服务器数据同步到客户端。

So, we have decided to sychronize the server data to the clients with sync framework.

我们的服务器是sql server 2008和Winodws 7

Our Server is sql server 2008 and Winodws 7

客户端有SQL CE和。 Net framework 3.5

Client has SQL CE and .Net framework 3.5

客户端有计时器,每隔15秒就会启动一次事件,以便将数据与同步框架(WCF)同步,并使用客户端中的实体框架刷新数据。

Client has timer which raises event every 15 seconds to synchronize the data with sync framework(WCF) and refresh the data with entity framework in the client.

但我在文章中读到同步框架是针对离线数据的。

But I read in the articles sync framework is for offline data.

您是否在上述设计中发现任​​何问题?

Did you find any issue in the above design?

你可以建议你去吧吗?

我非常感谢你的帮助

 

 

推荐答案

Latha。

Microsoft Sy nc Framework 不仅适用于离线。它使您可以脱机进行一些更改,然后将它们上传到服务器。离线不是必需的。

Microsoft Sync Framework is not only for offline. It offers you the possibility to make some changes offline and then upload them to the server. Being offline is not a requirement.

您的方案中的客户端是否会对数据进行更改,或者只会"消耗"数据。查看数据?

Is the client in your scenario going to make changes to the data, or it will only "consume" data by viewing it ?


这篇关于同步框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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