WCF数据推送&数据服务集合
使用 DataServiceCollection 类,是否可以通过 OData wcf feed 公开 EDM,自动将数据推送到客户端?使用某种形式的自动变更跟踪?
基本上,我有多个 Odata 提要通过实体框架公开 sql 记录,并希望它们全部按计划的时间间隔或在出现一定量的新数据时推送到单个客户端位置。他们每次应该只推送数据库中的新记录,因此每个服务都必须识别与上次推送相比哪些记录是新的。
或者,也可以从单个客户端提取数据,但基本上必须无缝识别哪些数据是新数据,哪些数据是旧数据。
这是 DataServiceCollection 的预期用途或功能,还是还有其他方法?
Using the DataServiceCollection class, is it possible to expose an EDM through OData wcf feed that automatically pushes data to a client? Using some form of automatic change-tracking?
Basically I have multiple Odata feeds exposing sql records through Entity Framework, and want them all to push to a single client location on either scheduled intervals or when a certain amount of new data is present. They should only push NEW records in the database at each time, therefore each service would have to recognize which records are new as compared with the last push.
The data could alternatively be pulled from the single client, but there has to be some seamless recognition of what data is new, and what is old, basically.
Is this the intended use or capability of DataServiceCollection, or is there some other method?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
OData 对于很多事情都很有用,但同步不是其中之一。如果您可以假设另一端也将使用 SQL Server,请查看 SQL 复制。
OData is great for many things but synchronization is not one of them. If you can assume that SQL Server will also be used on the other end, take a look at SQL Replication.