Db4oEmbedded.

OpenFile(IEmbeddedConfiguration, string) Method

Summary

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 .

Assembly
Db4objects.Db4o-2010.dll
Namespace
Db4objects.Db4o
Containing Type
Db4oEmbedded

Syntax

public static IEmbeddedObjectContainer OpenFile(IEmbeddedConfiguration config, string databaseFileName)

Parameters

Name Type Description
config IEmbeddedConfiguration a custom Db4objects.Db4o.Config.IConfiguration instance to be obtained via newConfiguration
databaseFileName string an absolute or relative path to the database file

Return Value

Type Description
IEmbeddedObjectContainer 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)