Telerik OpenAccess Classic

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

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 the name of the referential integrity constraint for a field or disables the constraint. If the value attribute of the extension is "{no}" then no constraint is generated. Some other value is used as the name of the constraint instead of the default name provided by the name generator for the datastore. Currently this extension may be used for fields that reference persistent classes. This extension is ignored if the field allows nulls and the target database does not support referential integrity constraints on columns that allow nulls.

Copy Code
<field name="category">
    <extension key="db-constraint" value="ref_cat" />