开发者

Simultaneous db4o file access

开发者 https://www.devze.com 2023-02-14 20:56 出处:网络
How can I simultaneously access my .db4o database from the Visual Studio\'s Object Manager Enterprise (OME) db4o plugin and from my application?

How can I simultaneously access my .db4o database from the Visual Studio's Object Manager Enterprise (OME) db4o plugin and from my application?

I'm starting out with开发者_JAVA技巧 db4o, integrating it with an ASP.NET MVC application. I have a two-layer repository access pattern set up using StructureMap for IoC and I keep getting DatabaseFileLockedException erros in VS when debugging while using OME.


When you want to access a db4o database file from multiple applications at the same time, you need the client-server-mode. So, either your application or a special "db-server only" application has to open the file as server, then both your application and the OME should be able to connect to this server.

The documentation has an example for this.

I never used OME, so I have no idea how to configure it there.

0

精彩评论

暂无评论...
验证码 换一张
取 消