|
|
Browse by Tags
All Tags » ObjectContainer » cache (RSS)
-
Hi dlouwers,
This looks to be a very efficient way to solve to problem. The 'Client' property now will be available to all subsequent methods with in the factory class.
Before implementing the factory class the technique to open the database was:public void ProcessItem(...){ this._path = ''File-Name''; IObjectContainer db = ...
-
How do I obtain a reference to an active ObjectContainer cache!
I do not want to pass the ObjectContainer as a method parameter. Is it possible to assign the active ObjectContainer at #FileOpen() to a protected field, thus making the reference scope visible to all methods in the class.
// Declared in Class.protected IObjectContainer ...
-
It seems that when I query for an object which is already known to db4o, the result is taken from the cache regardless of the fact that the cache might be inconsistent with the database.
For example
- Create two objects, the first referencing the second
- Store the objects and commit
- Delete the second object from the database and ...
|
|
|