Table of Contents

TColumnProp Enumeration

Specifies behavioural flags that control how a mapped database column is used during persistence operations.

Remarks

Combine one or more values in a TColumnProps set and pass it to the Properties parameter of ColumnAttribute, JoinColumnAttribute, or ForeignJoinColumnAttribute.

Syntax

Unit: Aurelius.Mapping.Metadata

Members

Name Value Description
Unique 0 Adds a unique constraint on the column in the database, preventing duplicate values.
Required 1 Marks the column as NOT NULL in the database, requiring a value to be provided.
NoInsert 2 Excludes the column from INSERT statements; the column value is not written when an entity is first saved.
NoUpdate 3 Excludes the column from UPDATE statements; the column value is not written when an existing entity is updated.
Lazy 4 Enables lazy loading for the column. Use for blob or memo fields that should only be loaded from the database on first access.