Esempio n. 1
0
            private DefragmentConfig DefragmentConfig(MemoryStorage storage)
            {
                DefragmentConfig defragConfig = new DefragmentConfig(Uri, TempFile(), new InMemoryIdMapping
                                                                         ());

                defragConfig.Db4oConfig(Config(storage));
                defragConfig.BackupStorage(BackupStorage());
                return(defragConfig);
            }
Esempio n. 2
0
        public void ChangeBackupStorage()
        {
            // #example: Use a separate storage for the backup
            DefragmentConfig config = new DefragmentConfig("database.db4o");

            config.BackupStorage(new FileStorage());

            Defragment.Defrag(config);
            // #end example
        }