简体   繁体   English

如何使用同步框架同步同一数据库中的2个表?

[英]How can I synchronize 2 tables in same database by using sync framework?

I have really strange problem. 我有一个很奇怪的问题。 I have been trying to synchronize 2 tables but they are localized in same db. 我一直在尝试同步2个表,但是它们被本地化在同一数据库中。 It is easy if you have 2 tables and 2 database (ClientDb and ServerDb). 如果您有2个表和2个数据库(ClientDb和ServerDb),这很容易。 I don't have a ClientDb. 我没有ClientDb。 But i have 2 tables. 但是我有2张桌子。 If you have 2 tables(they should be compared) in same database,Sync is not working in the same db. 如果您在同一数据库中有2个表(它们应该进行比较),则Sync无法在同一数据库中工作。 How can I solve this problem? 我怎么解决这个问题?

you can sync tables using Sync Fx even if they're on the same database. 您可以使用Sync Fx同步表,即使它们位于同一数据库中也是如此。 nothing fancy about it, just point the sync providers connection strings to the same database. 没什么好看的,只需将同步提供程序连接字符串指向同一数据库即可。 fyi, Sync Fx don't compare tables fyi,Sync Fx不比较表

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用Sync FrameWork同步具有不同列的2个表? - How to synchronize 2 tables which have got different Columns by using Sync FrameWork? 我可以使用Microsoft Sync Framework对SQL Server同步本地ms访问(mdb)数据库吗? - Can I use the Microsoft Sync Framework to synchronize a local ms access (mdb) database against SQL Server? 使用Dotmim同步框架同步两个SQL Server数据库 - Synchronize two SQL Server database using Dotmim sync framework 如何使用Entity Framework 6在运行时创建数据库和表? - How can I create a database and tables at runtime using Entity Framework 6? 如何使用Sync Framework同步使用大多数相同数据重新创建的表? - How use Sync Framework to sync tables that are recreated with mostly the same data? 同步框架:我可以仅同步部分表吗? - Sync Framework : Can I Sync only a subset of my tables? 使用Microsoft Sync Framework与过滤器同步数据 - Synchronize data with filter using Microsoft Sync Framework 如何使用Entity Framework同时保存到数据库的2个表 - How to save to 2 tables of a database at the same time using Entity Framework 如何清除Sync Framework客户端数据库表中的筛选数据 - How to purge filtered data in Sync Framework client database tables 如何使用实体框架获取数据库表的数量? - How can I use entity framework to get a count of database tables?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM