You are here: Configuration > File Configuration > Read Only

Read Only

You can set db4o to a read only mode. In this mode db4o won't do any changes to the database file. This mode is optimal for reading the database without doing some accidental changes to it.

IEmbeddedConfiguration configuration = Db4oEmbedded.NewConfiguration();
configuration.File.ReadOnly = true;
FileConfiguration.cs: Set read only mode
Dim configuration As IEmbeddedConfiguration = Db4oEmbedded.NewConfiguration()
configuration.File.ReadOnly = True
FileConfiguration.vb: Set read only mode