This topic applies to .NET version only
Due to some platform limitations, CompactFramework 2.0 users using the more convenient delegate based Native Query syntax that want their queries to be optimized are required to run the Db4oTool.exe command line utility on their assemblies prior to deploying them.
The utility, which can be found in the /bin folder of .NET distribution, is required because the CompactFramework API does not expose any of the delegate metadata needed by the Native Query optimizer. The tool works by augmenting the bytecode with the necessary delegate metadata and replacing ObjectContainer#Query invocations with invocations to a lower level method that makes use of the additional information.
The tool can be easily integrated inside Visual Studio.NET 2005 as a Post Build tool by following the simple steps below:
A complete example can be found in the src\Db4oTool\Db4oTool.Example directory of the distribution.