Table of Contents

Aurelius.Mapping.Attributes Namespace

Classes

Name Description
AbstractColumn​Attribute Abstract base class for column-mapping attributes that map a class member to a database column.
AbstractEntity​Attribute Indicates that the class is an abstract entity that can hold mapping information inherited by concrete entity classes, but will not be persisted to the database.
AssociationAttribute Specifies a many-to-one association between the marked field or property and another entity class.
AutomappingAttribute Indicates that the class is automapped, meaning Aurelius will automatically infer mapping information from the class declaration.
ColumnAttribute Specifies the database table column where a class field or property value will be saved.
DBIndexAttribute Defines a non-unique database index on one or more columns of the entity's table.
DBTypeMemoAttribute Instructs Aurelius to map a blob field or property to a MEMO (ANSI text) database column type.
DBTypeWideMemo​Attribute Instructs Aurelius to map a blob field or property to a wide memo (Unicode text) database column type.
DescriptionAttribute Associates a descriptive text string with a class, field, or property.
Discriminator​Column​Attribute Specifies the column used as the class discriminator in a single-table inheritance strategy.
Discriminator​Value​Attribute Specifies the discriminator value that identifies a particular class in a single-table inheritance hierarchy.
EntityAttribute Indicates that the class is an entity class that can be persisted to the database.
EnumerationAttribute Specifies how an enumerated type value is stored in the database.
FilterAttribute Applies a named filter to an entity class or a many-valued association.
FilterDefAttribute Declares a named filter definition on an entity class, including its default SQL condition.
FilterDefParam​Attribute Declares a typed parameter for a named filter definition.
ForeignJoinColumn​Attribute Specifies the database column used as a foreign key in the child table for a unidirectional many-valued association.
ForeignKeyAttribute Specifies a custom name for the foreign key generated by an association or many-valued association.
IdAttribute Specifies the identifier (primary key) of an entity class and how its value is generated.
IdUnsavedValue​Attribute Specifies the value that indicates an identifier has not yet been saved to the database.
InheritanceAttribute Identifies an entity class as the root of an inheritance hierarchy and specifies the persistence strategy to use for that hierarchy.
JoinColumnAttribute Specifies the database column used as a foreign key for a many-to-one association.
ManyValuedAssociation​Attribute Specifies a one-to-many association between the marked field or property and a collection of child entity objects.
ModelAttribute Specifies the model name that the entity belongs to, for use in multi-model designs.
OnDeletedAttribute Marks a method to be called after an entity has been deleted from the database.
OnDeletingAttribute Marks a method to be called before an entity is deleted from the database.
OnInsertedAttribute Marks a method to be called after an entity has been inserted into the database.
OnInsertingAttribute Marks a method to be called before an entity is inserted into the database.
OnUpdatedAttribute Marks a method to be called after an entity has been updated in the database.
OnUpdatingAttribute Marks a method to be called before an entity is updated in the database.
OrderByAttribute Specifies the default ordering of items in a many-valued association collection.
PrimaryJoinColumn​Attribute Defines the primary key column of a child table that references the parent table's primary key in a joined-tables inheritance strategy.
SequenceAttribute Defines the database sequence (or generator) used to produce new identifier values.
TableAttribute Specifies the database table name and optional schema for an entity class.
TransientAttribute Marks a field in an automapped class as non-persistent so it is not saved to the database.
UniqueKeyAttribute Defines a unique (exclusive) database index on one or more columns of the entity's table.
VersionAttribute Indicates that the marked field or property holds the version counter used for optimistic concurrency control.
WhereAttribute Specifies a SQL expression appended to the WHERE clause when retrieving entities or items of a many-valued association.

Enumerations

Name Description
TDiscriminatorType Identifies the data type of a discriminator column value: string or integer.

Methods

Name Description
RegisterEntity Ensures the specified entity class is referenced so that the Delphi linker includes it in the final executable.