同步框架同步数据库视图视图、框架、数据库

2023-09-04 00:50:16 作者:半盏清酒

微软能否同步框架同步数据库视图?

can microsoft sync framework sync database views ?

或你SelectIncrementalInsertsCommand可以选择并加入到多个表还挺做这样一个观点?

or in your SelectIncrementalInsertsCommand can you select and join to multiple tables kinda doing something like a view?

推荐答案

同步框架不支持的意见。你可以改变SelectIncrementalInsertsCommand返回数据,但你必须确保它给回料,没有多余的列中没有错误匹配的数据类型,确切的模式。还有,如果你的方案确实需要额外的信息的另一种方式。您可以manipualate在供应商的ChangesSelected事件检索的数据集。但是你必须要小心的性能打到这里。

Sync Framework does not support Views. You can changes the SelectIncrementalInsertsCommand to return data, however you need to make sure it gives back exact schema expected, no extra columns no mis matched data types. There is another way if your scenario really demands extra info. You can manipualate the data set retrieved in the ChangesSelected event of Provider. However you need to be careful about performance hit here.