JoinColumnAttribute Class
Specifies the database column used as a foreign key for a many-to-one association.
Remarks
Always use JoinColumn together with the Association attribute on the same member. The column defined here is created as a foreign key referencing the primary key (or another unique column) of the associated entity's table. When the associated entity has a composite identifier, specify one JoinColumn for each column in the primary key.
Syntax
Unit: Aurelius.Mapping.Attributes
JoinColumnAttribute = class(AbstractColumnAttribute);
Constructors
| Name | Description |
|---|---|
| Create | Creates a JoinColumnAttribute specifying the foreign key column name, property flags, and the referenced column. |
Methods
| Name | Description |
|---|---|
| Clone | Returns a deep copy of this attribute instance. |
Properties
| Name | Description |
|---|---|
| ReferencedColumnName | Gets or sets the name of the column in the associated table that is referenced by this foreign key. |