예제 #1
0
파일: Program.cs 프로젝트: zhichkin/sss
 private static void DoWork(string source, string target, string version)
 {
     using (ComConnector connector = new ComConnector(version, source))
     {
         connector.Connect();
         using (SqlConnection connection = new SqlConnection(target))
         {
             connection.Open();
             ExchangeSession session = new ExchangeSession(connection);
             session.Enlist(new Catalog_InternalDocument_Adapter(connector), new Catalog_InternalDocument_Translator());
             session.Enlist(new Catalog_Files_Adapter(connector), new Catalog_Files_Translator());
             session.DoExchange();
         }
     }
 }
예제 #2
0
 public Catalog_Files_Adapter(ComConnector connector)
 {
     this.connector = connector;
 }
 public Catalog_InternalDocument_Adapter(ComConnector connector)
 {
     this.connector = connector;
 }