Table of contents
CollectionIDAttribute API Document
Used for a collection that requires a collection id.
Example
public class Blog : ActiveRecordBase { ... [HasManyAndBelongs/HasMany] [CollectionIDAttribute(CollectionIDAttribute.Native)] public int Id { get { return _id; } set { _id = value; } }
Constructors
CollectionIDAttribute(CollectionIDType generator, String column, String ColumnType)
Initializes a new instance of the Castle.ActiveRecord.CollectionIDAttribute class.
| Parameter | Description |
|---|---|
| generator | The generator. |
| column | The column. |
| ColumnType | Type of the column. |
Properties
| Name | Type | Description |
|---|---|---|
| Generator | CollectionIDType | Gets or sets the generator. |
| Column | String | Gets or sets the column name |
| ColumnType | String | Gets or sets the type of the column. |