You are here: Advanced Features > Enhancement Tools > Db4otool > Including Db4oTool In The Build

Including Db4oTool In The Build

The easiest way to use Db4oTool is to include it directly into the build process. This will enable you to get a processed assembly immediately after a successful build. If you are using Visual Studio Compact Framework emulator, you will get the processed assembly straight into the emulator.

Use the following steps to enable Db4oTool in Visual Studio project:

An example of this is included in the distribution in src/Db4oTool/Db4oTool.Example folder.

Possible usages:

  1. Native Query optimization: [path_to_Db4oTool_folder]/Db4oTools.exe -nq $(TargetPath)
  2. Transparent Activation support for the whole assembly: [path_to_Db4oTool_folder]/Db4oTools.exe -ta $(TargetPath)
  3. Transparent Activation support for MyClass objects: [path_to_Db4oTool_folder]/Db4oTools.exe -ta -byname:MyClass $(TargetPath)
  4. Transparent Activation and Transparent Persistence support: [path_to_Db4oTool_folder]/Db4oTools.exe -tp $(TargetPath)
For more Db4oTool options please refer to Db4oTool Usage.