Ejemplo n.º 1
0
        /// <exception cref="System.IO.IOException"></exception>
        private void Defrag(string fname)
        {
            DefragmentConfig config = new DefragmentConfig(fname);

            config.Db4oConfig(NewConfiguration());
            config.StoredClassFilter(IgnoreClassFilter(typeof(StoredClassFilterTestCase.SimpleClass
                                                              )));
            Db4objects.Db4o.Defragment.Defragment.Defrag(config);
        }
Ejemplo n.º 2
0
        public void UseAClassFilter()
        {
            // #example: Use class filter
            DefragmentConfig config = new DefragmentConfig("database.db4o");

            config.StoredClassFilter(new AvailableTypeFilter());

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