Click or drag to resize

ObjectDbCreate Method (FileInfo)

Constructs and opens an object database using a specified core database file. The file will be created if it doesn't exist. Other support database files (log, journal, etc) will be created as siblings of the core database file.

If for example the database file is specified as C:\temp\dbtesting\myproduct.edb then the folder C:\temp\dbtesting will contain the core database file myproduct.edb as well as other supporting files that comprise the full database.

Namespace:  Orthogonal.ObjectDb.Esent
Assembly:  Orthogonal.ObjectDb.Esent (in Orthogonal.ObjectDb.Esent.dll) Version: 4.0.0
Syntax
C#
public static IObjectDbEsent Create(
	FileInfo file
)

Parameters

file
Type: System.IOFileInfo
A FileInfo object defining the database file. The file must have the .edb extension.

Return Value

Type: IObjectDbEsent
A reference to an object database that implements the IObjectDbEsent interface.
Exceptions
ExceptionCondition
ArgumentExceptionThrown if the file value does not have extension .edb.
See Also