Search code examples
db4o

Object Mapper result window shows no objects although 13 items were found


I installed the Db4o VS plugin and connected to a local source. When I right-click my class in the db4o browser window and choose "Show all objects" the rsult window pops up with the text "No. of Objects Retrieved: 13" but none are shown.

Creating and running a custom query gives the same result. Any ideas?


Solution

  • I have checked the database/assemblies you sent me.

    There are two aspects contributing to this issue:

    • A know limitation of OME (related to Gamlor suggestion): If you have enums stored in your db you need to configure OME so it will be able to find the enum type definition. To do that just do as user Gamlor said, i.e, in VS just go to Tools/Object Manager Enterprise/Options/Assembly Search Path... and add the folders where your assemblies can be found (See pictures bellow)

    OMN Options

    OMN Assembly search path

    After you configure your assembly search path OMN will display your objects correctly. Unfortunately once your assembly gets loaded into VS the only way to unload it is by restarting VS.

    • Exception handling in OMN has some quirks that need to be improved. In this case when OMN tries to show objects for which it needs the actual types to be present but it fails to find these types, an exception is thrown but at a higher level it is caught (and logged to a file under "\Users\USERNAME\AppData\Roaming\db4objects\ObjectManagerEnterprise\ExceptionLogXXXX.log" where XXXX is a number) but the user is not notified.

    Hope this helps.

    Best