Click or drag to resize

EngineSettings Properties

The EngineSettings type exposes the following members.

Properties
 NameDescription
Public propertyAutoRebuild After a Close with exception do a database rebuild on next open
Public propertyCollation Create database with custom string collection (used only to create database) (default: Collation.Default)
Public propertyDataStream Get/Set custom stream to be used as datafile (can be MemoryStream or TempStream). Do not use FileStream - to use physical file, use "filename" attribute (and keep DataStream/WalStream null)
Public propertyFilename Full path or relative path from DLL directory. Can use ':temp:' for temp database or ':memory:' for in-memory database. (default: null)
Public propertyInitialSize If database is new, initialize with allocated space (in bytes) (default: 0)
Public propertyLogStream Get/Set custom stream to be used as log file. If is null, use a new TempStream (for TempStream datafile) or MemoryStream (for MemoryStream datafile)
Public propertyPassword Get database password to decrypt pages
Public propertyReadOnly Indicate that engine will open files in readonly mode (and will not support any database change)
Public propertyReadTransform Is used to transform a BsonValue from the database on read. This can be used to upgrade data from older versions.
Public propertyTempStream Get/Set custom stream to be used as temp file. If is null, will create new FileStreamFactory with "-tmp" on name
Public propertyUpgrade If detect it's a older version (v4) do upgrade in datafile to new v5. A backup file will be keeped in same directory
Top
See Also