您可以选择列与同步框架同步您可以、框架

由网友(時光薄涼、歲月無情)分享简介:我注意到,与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 choo...

我注意到,与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.

希望帮助

阅读全文

相关推荐

最新文章