Ejemplo n.º 1
0
        private static DataModel.MetadataItemCollection DumpMetadataItem(DataModel.DataStore ds, ActiveQueryBuilder.Core.SQLContext sc)
        {
            DataModel.MetadataItemCollection o = new DataModel.MetadataItemCollection( );
            o.List = BuildBindingList(sc);
            // Export MetadataItem FQN Collection...
            string TempFileFullPathName = System.IO.Path.GetTempFileName( );

            o.Save(TempFileFullPathName);
            // SQLite From TMP to "USER PATH"
            System.IO.File.Copy(TempFileFullPathName, ds.MiFqnFilename, true);
            //
            return(o);
        }
Ejemplo n.º 2
0
 private static void PullAndDump(DataModel.DataStore ds)
 {
     try
     {
         ActiveQueryBuilder.Core.SQLContext qb = PullMetadata(ds);
         if (qb == null)
         {
             return;
         }
         DumpAqbQb(qb, ds);
         DataModel.MetadataItemCollection miColl = DumpMetadataItem(ds, qb);
         // publish( qb, ds );
         // push( qb, ds );
         // baseline( qb, ds );
         // diff( qb, ds );
         // thesaurus( qb, ds );
         // watchers( qb, ds );
         // log( qb, ds );
     }
     catch (System.Exception ex)
     {
     }
 }