开发者

SqlSyncProvider custom transformation

开发者 https://www.devze.com 2023-02-22 02:10 出处:网络
Does anyone know if it is possible to customize sync using SqlSyncProvider such that I can sync non identical databases (both sql servers) using custom transformations.

Does anyone know if it is possible to customize sync using SqlSyncProvider such that I can sync non identical databases (both sql servers) using custom transformations.

For e.g. say I have database1 containing a Person table with cols 'FirstName' and 'LastName', and I have database2 with Person table with a single column 'Name' and I want the sync to transform database2.Pers开发者_运维知识库on.Name = database1.Person.FirstName + database1.Person.LastName.

Regards,

Ilias


that should be possible. you can provision the tables as it is, but intercept the changes and manipulate them.

check out a similar approach here:

Synching with different column keys

Part 4 – Synchronizing Tables With Different Table Names and Column Names

the process should be almost the same.

0

精彩评论

暂无评论...
验证码 换一张
取 消