IObjectContainer.

Delete(Object) Method

Summary

Deletes a stored object permanently from the database.
Assembly
Db4objects.Db4o-2010.dll
Namespace
Db4objects.Db4o
Containing Type
IObjectContainer

Syntax

void Delete(Object obj)

Remarks

Deletes a stored object permanently from the database. Note that this method has to be called for every single object individually. Delete does not recurs to object members. Primitives, strings and array member types are deleted.

Referenced objects of the passed object remain untouched, unless cascaded deletes are Db4objects.Db4o.Config.IObjectClass.CascadeOnDelete(System.Boolean) or Db4objects.Db4o.Config.IObjectField.CascadeOnDelete(System.Boolean).

The method has no effect, if the passed object is not stored in the object container.

A subsequent call to Db4objects.Db4o.IObjectContainer.Store(System.Object) with the same object stores the object again in the database.

Parameters

Name Type Description
obj Object the object to be deleted from the object container.

Return Value

Type Description
void

See Also

  • Db4objects.Db4o.Config.IObjectClass.CascadeOnDelete(System.Boolean)
  • Db4objects.Db4o.Config.IObjectField.CascadeOnDelete(System.Boolean)
  • Db4objects.Db4o.Ext.IObjectCallbacks