syncfx 4.0 - howto specify syncdirection in one scope
-
20 Maret 2012 2:41
Hi guys,
I'm playing around with SyncFx and wondering about how to specify the syncdirection for specific tables.
When i was using SyncFx 2.1, i had multiple scopes (uploadonly, downloadonly, biderectional).
Now I try to rebuild same functionality with Sync Toolkit 4.0.
On other post I read that multiple scopes are not supported by default, so i have to use just one scope - the "default scope".
How can i Specify now individual syncdirections for the tables within the default scope?
thanks
Semua Balasan
-
20 Maret 2012 3:04Moderator
afaik, there is no configuration option to specify the sync direction.
to control Upload or Download, i think you can alter the CacheController if you want. by default it's doing an UploadAndDownload.
If there are changes to upload, it will submit an Upload request, otherwise it will submit a Download request. If an Upload request is made, the Download request is submitted after the Upload request is done.
note, similar to Sync Fx 2.1, the sync direction is at the scope level not at the table level
-
20 Maret 2012 4:24
note, similar to Sync Fx 2.1, the sync direction is at the scope level not at the table level
Hi June T - thanks for your reply.
In Sync Fx2.1 it's on scope level, yes. But it was easy to create multiple scopes.
As far as i see here, in CP4.0 it's quiet a challenge to have multiple scopes, as each scope will have it's own OfflineContext and .svc... I'm not sure right now how this multiple scopes will work with sqlce by default (probably not)
...I'll have a deeper look at the cachecontroller.
thanks
-
20 Maret 2012 5:50Moderator
i think it should be easier to do with sqlce than with IsolatedStorage. but my question is if you're working with sqlce, do you really need to work with Sync Tookit or plain Sync Fx will do?
-
20 Maret 2012 7:20
My target that all my devices sync with one "service". My devices are Windows phone 7, mobile 6.5 and sql express. Windows Phone and Mobile will use sqlce.The isolatedStorage is not really necessary for me, but the odata sync service is.
-
20 Maret 2012 7:52Moderatorgot it.. there is a sample on sqlce in the toolkit...i think you should be able to figure out the multi-scope thing...