Table of Contents

TableAttribute Class

Specifies the database table name and optional schema for an entity class.

Remarks

Use this attribute to map the entity class to a specific database table. Every object instance saved will become a record in that table. When using single-table inheritance, apply Table only to the ancestor class. When using joined-tables inheritance, apply it to every class in the hierarchy.

Syntax

Unit: Aurelius.Mapping.Attributes

TableAttribute = class(TCustomAttribute);

Constructors

Name Description
Create Overloaded
Create(string)
Create(string, string)

Properties

Name Description
Name Gets or sets the database table name.
Schema Gets or sets the database schema name.