Table of contents
KeyPropertyAttribute API Document
A key property for a composite key
Constructors
KeyPropertyAttribute()
Initializes a new instance of the Castle.ActiveRecord.KeyPropertyAttribute class.
Properties
| Name | Type | Description |
|---|---|---|
| UnsavedValue | String | Gets or sets the unsaved value. |
| NotNull | Boolean | Gets or sets a value indicating whether this property allow null. |
| Length | Int32 | Gets or sets the length of the property (for strings - nvarchar(50) ) |
| Column | String | Gets or sets the column name |
| Update | Boolean | Set to false to ignore this property when updating entities of this ActiveRecord class. |
| Insert | Boolean | Set to false to ignore this property when inserting entities of this ActiveRecord class. |
| Unique | Boolean | Gets or sets a value indicating whether this Castle.ActiveRecord.PropertyAttribute is unique. |
| Formula | String | Gets or sets the formula used to calculate this property |
| ColumnType | String | Gets or sets the type of the column. |
| UniqueKey | String | From NHibernate documentation: A unique-key attribute can be used to group columns in a single unit key constraint. |
| Index | String | From NHibernate documentation: specifies the name of a (multi-column) index |
| SqlType | String | From NHibernate documentation: overrides the default column type |
| Check | String | From NHibernate documentation: create an SQL check constraint on either column or table |
| Access | PropertyAccess | Gets or sets the access strategy for this property |
| CustomAccess | String | Gets or sets the custom access strategy |
| AccessString | String | Gets the access strategy string for NHibernate's mapping. |