开发者

Do I understand the "data flow" ib data-driven app for WP7 right?

开发者 https://www.devze.com 2023-02-25 00:46 出处:网络
it\'s last question, I guess. One more time - I need to: Get some piece of data from server to client with WP7.

it's last question, I guess. One more time - I need to:

  1. Get some piece of data from server to client with WP7.

  2. Change data on a client in offline mode.

  3. S开发者_运维知识库end and submit changes on server.

After digging the net - i got next:

On a server side I have: Entity framework --> WCF RIA

On a client side I have: WCF RIA proxy classes --> (???????)-->db sterling -->USER UI-->

-->(changing data)-->db sterling-->(????????)-->WCF RIA proxy classes

So, question is - can I: 1. Can I DETACH WCF RIA proxy objects from context

  1. Save (serialaze) it in sterling

  2. Change it in USER UI

  3. Save changes in sterling again

  4. And then restore (deserialaze) changed objects from sterling

  5. ATTACH restored objects to context and then - save changes in main database?

In other words - can I operate directly with WCF RIA proxy classes on client-side (store-->change-->restore), and don't create any "support and translating" classes on a client-side?

Thanks.

P.S. May be that scheme is too complex? For this kind of app, I mean.


You should have a look at the RiaServiceContrib project in CodePlex at: http://riaservicescontrib.codeplex.com/

This library gives you the tools you require to take entities offline, save them to Isolated Storage, load them back, change them, save them again, etc. and then eventually to resubmit them back to the service through the context when you are back online.

0

精彩评论

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