/// <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); }
public void UseAClassFilter() { // #example: Use class filter DefragmentConfig config = new DefragmentConfig("database.db4o"); config.StoredClassFilter(new AvailableTypeFilter()); Defragment.Defrag(config); // #end example }