同步设置代码
DbSyncScopeDescription scopeDesc = new DbSyncScopeDescription(string.Format("{0}Scope", tab));
                DbSyncTableDescription tableDesc = SqlSyncDescriptionBuilder.GetDescriptionForTable(tab, serverConn);
                scopeDesc.Tables.Add(tableDesc);
                SqlSyncScopeProvisioning serverProvision = new SqlSyncScopeProvisioning(serverConn, scopeDesc);
                serverProvision.SetCreateTableDefault(DbSyncCreationOption.Skip);
                serverProvision.Apply();DbSyncScopeDescription scopeDesc = SqlSyncDescriptionBuilder.GetDescriptionForScope(string.Format("{0}Scope", xNode1[i].InnerText), serverConn);
                SqlSyncScopeProvisioning clientProvision = new SqlSyncScopeProvisioning(clientConn, scopeDesc);
                clientProvision.SetCreateTableDefault(DbSyncCreationOption.Skip);
                clientProvision.Apply();请教大侠 指点在服务器数据库表里 删除和新增数据 都可以下载到客户端 但是 把表的某个字段数据修改了不能同步到客户端 

解决方案 »

  1.   

    Sync Framework does not provide automatic partition management. This has the following consequences:If you update a row and change the value of a column that was used in filtering, the row is not automatically deleted from those clients whose partition included that row. Consider an application that downloads customer data based on postal code to a salesperson. If a customer moves its offices into a new postal code area, data for that customer is not removed from the salesperson who originally had it. If that functionality is required, you could develop a system that enables Sync Framework to download that update as a delete.There is no mechanism to prevent an application from inserting data at the client that is outside of that client's partition. You could add constraints at the client to disallow out-of-partition inserts and updates.This means that you have to do it by yourself.