IObjectField.

CascadeOnDelete(bool) Method

Summary

sets cascaded delete behaviour.
Assembly
Db4objects.Db4o-2010.dll
Namespace
Db4objects.Db4o.Config
Containing Type
IObjectField

Syntax

void CascadeOnDelete(bool flag)

Remarks

sets cascaded delete behaviour.

Setting cascadeOnDelete to true will result in the deletion of the object attribute stored in this field on the parent object if the parent object is passed to Db4objects.Db4o.IObjectContainer.Delete(System.Object) .

Caution !
This setting will also trigger deletion of the old member object, on calls to Db4objects.Db4o.IObjectContainer.Store(System.Object) . An example of the behaviour can be found in Db4objects.Db4o.Config.IObjectClass.CascadeOnDelete(System.Boolean)

The default setting is false.

In client-server environment this setting should be used on both client and server.

This setting can be applied to an open object container.

Parameters

Name Type Description
flag bool whether deletes are to be cascaded to the member object.

Return Value

Type Description
void

See Also

  • Db4objects.Db4o.Config.IObjectClass.CascadeOnDelete(System.Boolean)
  • Db4objects.Db4o.IObjectContainer.Delete(System.Object)
  • Db4objects.Db4o.Ext.IObjectCallbacks