Table of Contents

ColumnAttribute Class

Specifies the database table column where a class field or property value will be saved.

Remarks

Use Column to map a field or property to a specific table column. Aurelius determines the column data type automatically from the field or property type. Only members decorated with Column are persisted unless the class uses the Automapping attribute. Use Length for string columns to set the maximum character length (maps to VARCHAR). Use Precision and Scale for numeric columns.

Syntax

Unit: Aurelius.Mapping.Attributes

ColumnAttribute = class(AbstractColumnAttribute);

Constructors

Methods

Name Description
Clone Returns a deep copy of this attribute instance.

Properties

Name Description
Length Gets or sets the maximum character length for string columns.
Precision Gets or sets the total number of significant digits for numeric columns.
Scale Gets or sets the number of decimal digits for numeric columns.