Summary
Operates just like
A database file can only be opened once, subsequent attempts to open another
Database files can only be accessed for readwrite access from one process (one VM) at one time. All versions except for db4o mobile edition use an internal mechanism to lock the database file for other processes.
Db4objects.Db4o.Db4oEmbedded.OpenFile(Db4objects.Db4o.Config.IEmbeddedConfiguration,System.String)
, but uses
the global db4o
Db4objects.Db4o.Config.IConfiguration
context.
opens an
Db4objects.Db4o.IObjectContainer
on the specified database file for local use.
A database file can only be opened once, subsequent attempts to open another
Db4objects.Db4o.IObjectContainer
against the same file will result in
a
Db4objects.Db4o.Ext.DatabaseFileLockedException
.Database files can only be accessed for readwrite access from one process (one VM) at one time. All versions except for db4o mobile edition use an internal mechanism to lock the database file for other processes.
- Assembly
- Db4objects
.Db4o-2010 .dll - Namespace
- Db4objects
.Db4o - Containing Type
- Db4oFactory
Syntax
[System.ObsoleteAttribute(@"Use Db4oEmbedded.OpenFile(Db4objects.Db4o.Config.IEmbeddedConfiguration, string) instead")]
public static IObjectContainer OpenFile(string databaseFileName)
Attributes
Type | Description |
---|---|
ObsoleteAttribute |
Parameters
Name | Type | Description |
---|---|---|
databaseFileName | string | an absolute or relative path to the database file |
Return Value
Type | Description |
---|---|
IObjectContainer |
an open
Db4objects.Db4o.IObjectContainer
|
See Also
- Db4objects.Db4o.Config.IConfiguration.ReadOnly(System.Boolean)
- Db4objects.Db4o.Config.IConfiguration.Encrypt(System.Boolean)
- Db4objects.Db4o.Config.IConfiguration.Password(System.String)