仅同步不同数据库的表结构。
Vb.Net |
Dim dbDesti As Database=Proj.SysDataFactory("UserDB") Dim dbSource As Database=Proj.SysDataFactory("UserDBSource") Dim strErrMsg As String = Nothing '从数据源UserDBSource中同步UserInfo表结构到数据源UserDB的UserInfo表 dbDesti.SyncSchema(dbSource,"UserInfo","UserInfo",SyncSchemaModeEnum.Update,strErrMsg,True) |
C# |
Database dbDesti = Proj.SysDataFactory["UserDB"]; Database dbSource = Proj.SysDataFactory["UserDBSource"]; // 从数据源UserDBSource中同步UserInfo表结构到数据源UserDB的UserInfo表 dbDesti.SyncSchema(dbSource, "UserInfo", "UserInfo", SyncSchemaModeEnum.Update,out string strErrMsg, true); |