IConfiguration.

ReadOnly(bool) Method

Summary

turns readOnly mode on and off.

Syntax

void ReadOnly(bool flag)

Remarks

turns readOnly mode on and off.

This method configures the mode in which subsequent calls to Db4objects.Db4o.Db4oFactory.OpenFile(System.String) will open files.

Readonly mode allows to open an unlimited number of reading processes on one database file. It is also convenient for deploying db4o database files on CD-ROM.

In client-server environment this setting should be used on the server side in embedded mode and ONLY on client side in networked mode.

Parameters

Name Type Description
flag bool true for configuring readOnly mode for subsequent calls to Db4objects.Db4o.Db4oEmbedded.OpenFile(System.String) .

Return Value

Type Description
void