您可以选择列与同步框架同步 [英] Can you select which column to sync with Sync Framework

查看:173
本文介绍了您可以选择列与同步框架同步的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到,与MS同步,经过向导来创建WCF服务,将做同步,你只能选择同步的表。

I notice that with MS Sync, going through the wizard to create the WCF service that will do the sync, you can only choose which table to sync.

是否有可能只同步表的几列,而不是整个表?它还将创建与整个表结构本地SDF文件。我只需要表中的一些列显示在我的移动设备。

Is it possible to only sync a few columns of the table and not the entire table? It will also create the local sdf file with the whole table structure. I only need a few columns of the table to be displayed in my mobile device.

推荐答案

您可以通过编写code ++实现这一点。您可以使用DbSyncTableDescription

You can achieve this by writing code. You can use the DbSyncTableDescription

DbSyncTableDescription tableDescription = SqlSyncDescriptionBuilder.GetDescriptionForTable(tableName, Collection<Columns>, server Connection)

第二个参数是要在同步包含列名的集合。

The second parameter is the collection of Column Names you want to include in Sync.

希望帮助

这篇关于您可以选择列与同步框架同步的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆