开发者

WCF Data Push & DataServiceCollection<T>

开发者 https://www.devze.com 2023-02-18 10:26 出处:网络
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?

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开发者_JAVA百科.

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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消