Telerik OpenAccess Classic

Telerik OpenAccess ORM Send comments on this topic.
dependent
Programmer's Guide > OpenAccess ORM Classic (Old API) > Programming With OpenAccess > Metadata Extension Reference > dependent

Glossary Item Box

This documentation article is a legacy resource describing the functionality of the deprecated OpenAccess Classic only. The contemporary documentation of Telerik OpenAccess ORM is available here.

Sets a reference to a persistent class or the persistent values in a collection, array or map to be considered dependent. Dependent objects are deleted when the instance referring to them is deleted.

OpenAccess ORM does not check for other references to the instances deleted so this extension should only be used for objects that are not referenced from anywhere else.

The XML metadata for the same is given below:

Copy Code
<field name="lines">
    <extension key="dependent" value="true" />
    <collection element-type="OrderLine" />
</field>

See also Keys-dependent.