/// <exception cref="System.IO.IOException"></exception> private void Defrag(string dbFile) { DefragmentConfig config = new DefragmentConfig(dbFile); config.UpgradeFile(dbFile + ".upgraded"); Db4objects.Db4o.Defragment.Defragment.Defrag(config); }
public void UpgradeDb4OFile() { // #example: Upgrade database version DefragmentConfig config = new DefragmentConfig("database.db4o"); config.UpgradeFile(Environment.GetEnvironmentVariable("TEMP")); Defragment.Defrag(config); // #end example }