同步表数据。
Vb.Net |
Dim dbDesti As Database=Proj.SysDataFactory("UserDB") Dim dbSource As Database=Proj.SysDataFactory("UserDBSource") '同步数据 Dim dicLink As New Dictionary(Of String,String) dicLink.Add("UserID","UserID") dbDesti.SyncData(dbSource,"UserInfo","UserInfo",SyncDataModeEnum.Update,dicLink,Nothing) |
C# |
Database dbDesti = Proj.SysDataFactory["UserDB"]; Database dbSource = Proj.SysDataFactory["UserDBSource"]; // 同步数据 Dictionary<string, string> dicLink = new Dictionary<string, string>(); dicLink.Add("UserID", "UserID"); dbDesti.SyncData(dbSource, "UserInfo", "UserInfo", SyncDataModeEnum.Update, dicLink, null); |