Telerik OpenAccess Classic

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

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.

Turns the table generation for a class or link table on or off (boolean extension). It can be set at the class level and its default value is set to false. The db-do-not-create-table extension is useful when some of the classes in your model map to legacy database tables, which need not be created and need to be left out of the generated schema.

Copy Code
<class name="Item">
    <extension key="db-do-not-create-table" value="true" />
</class>

Here is an example of this extension used on a link table for a Collection:

Copy Code
<field name="lines">
    <collection element-type="OrderLine">
        <extension key="db-link-table">
            <extension key="db-do-not-create-table" value="true" />
        </extension>
    </collection>
</field>