同步框架和更改跟踪元数据 [英] Sync Framework and Change Tracking MetaData
问题描述
是否可以使用Sync Framework而不使用Change Tracking或任何类型的元数据?
Is is possible to use the Sync Framework and NOT use Change Tracking nor any type of metadata?
两种情况对我有用:
1. 应用程序启动时服务器数据库的完整副本(仅限表的子集)到本地SQL Server CE
1. Full copy of the server DB (subset of tables only) to local SQL Server CE at application startup
- 或 -
2. 使用增量更改更新本地SQL Server CE
2. Update the local SQL Server CE with incremental changes
- 但是
要求是没有任何服务器端元数据而不使用SQL Server更改跟踪。 客户端元数据就可以了。 不需要上传回服务器。 完成此任务的最佳方法是什么?
Requirement is to NOT have any server-side metadata and NOT to use SQL Server Change Tracking. Client-side metadata would be OK. No upload back to the server is required. What's the best way to accomplish this?
推荐答案
您可以尝试每次同步获取服务器数据的快照,查看如何使用脱机提供程序获取快照。如果您没有要删除的同步,您可以使用离线提供程序
在服务器端没有任何元数据(删除在逻辑删除表中跟踪)。
you can try just grabbing a snapshot of the server data every synch, check out how to get a snapshot using the offline provider. if you dont have deletes to synchronize, you can getaway without any metadata on the server side using the offline providers (deletes are tracked in a tombstone table).
这篇关于同步框架和更改跟踪元数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!