【问题标题】:Sync Framework - Check logic before synchronizing同步框架 - 同步前检查逻辑
【发布时间】:2012-05-05 15:31:56
【问题描述】:

我想知道是否可以通过某些逻辑同步两个数据库。

DbSyncTableDescription user = SqlSyncDescriptionBuilder.GetDescriptionForTable("User", sqlServerConn);
DbSyncTableDescription role = SqlSyncDescriptionBuilder.GetDescriptionForTable("Role", sqlServerConn);
DbSyncTableDescription usersInRoles = SqlSyncDescriptionBuilder.GetDescriptionForTable("UsersInRoles", sqlServerConn);

例如,将管理员同步到用户表。不要同步五线谱。

提前致谢!

【问题讨论】:

    标签: azure synchronization microsoft-sync-framework data-synchronization azure-data-sync


    【解决方案1】:

    您可以在您的范围内定义一个过滤器...请参阅:Walkthrough: Defining Filtered Scope and Provisioning Server Database

    或者如果您想要更多关于需要同步的逻辑,您可以拦截 ChangesSelected 事件中的更改...请参阅:Manipulating the change dataset in Sync Fx

    【讨论】:

      猜你喜欢
      • 2022-12-06
      • 2011-12-13
      • 1970-01-01
      • 1970-01-01
      • 2014-02-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多