Table of Contents

TColumnProps Set

A set of TColumnProp flags that controls the behaviour of a mapped database column during persistence operations.

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.