IObjectContainer.

Store(Object) Method

Summary

Stores objects or updates stored objects..
Assembly
Db4objects.Db4o-2010.dll
Namespace
Db4objects.Db4o
Containing Type
IObjectContainer

Syntax

void Store(Object obj)

Remarks

Stores objects or updates stored objects.

An object not yet stored in the database will be stored. An object already stored in database will be updated.

Updates:
  • Will update all primitive types, strings and arrays of a object
  • References to other object that are already stored will be updated.
  • New object members will be stored.
  • Referenced object members that are already stored are not updated themselves. Every object member needs to be updated individually with a call to store(). Unless a deeper update depth has been configured with on of these options: - or class-specific update depth, cascde on update for type or field.

Parameters

Name Type Description
obj Object the object to be stored or updated.

Return Value

Type Description
void

See Also

  • Db4objects.Db4o.Ext.IExtObjectContainer.Store(System.Object,System.Int32)
  • Db4objects.Db4o.Config.IConfiguration.UpdateDepth(System.Int32)
  • Db4objects.Db4o.Config.IObjectClass.UpdateDepth(System.Int32)
  • Db4objects.Db4o.Config.IObjectClass.CascadeOnUpdate(System.Boolean)
  • Db4objects.Db4o.Config.IObjectField.CascadeOnUpdate(System.Boolean)
  • Db4objects.Db4o.Ext.IObjectCallbacks