Telerik OpenAccess Classic

Telerik OpenAccess ORM Send comments on this topic.
The Depend Attribute
Programmer's Guide > OpenAccess ORM Classic (Old API) > Programming With OpenAccess > Attributes > Field Attributes > The Depend Attribute

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.

The [Depend] attribute is used to specify that the object of a reference field type is dependent on the containing object. If the containing (parent) object is deleted, the dependent, referenced object is also deleted. Consider an example of a Person class with a field of type Address. If the Address field instance is only associated with a single Person instance, you can set the Address field as a dependent field:

Copy Code
[Persistent]
class Person {
  . . .
  [Depend]
  Address addr;
  . . .
}