Summary
opens an
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 a time. All versions except for db4o mobile edition use an internal mechanism to lock the database file for other processes.
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 a 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(IConfiguration config, string databaseFileName)
Attributes
Type | Description |
---|---|
ObsoleteAttribute |
Parameters
Name | Type | Description |
---|---|---|
config | IConfiguration |
a custom
Db4objects.Db4o.Config.IConfiguration
instance to be obtained via
Db4objects.Db4o.Db4oEmbedded.NewConfiguration
|
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)