Home

Castle Stronghold

CollectionIDAttribute API Document

Used for a collection that requires a collection id.

Example


public class Blog : ActiveRecordBase
{
    ...
    
    [HasManyAndBelongs/HasMany]
    [CollectionIDAttribute(CollectionIDAttribute.Native)]
    private 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.

ParameterDescription
generator The generator.
column The column.
ColumnType Type of the column.

Properties

NameTypeDescription
GeneratorCollectionIDType Gets or sets the generator.
ColumnString Gets or sets the column name
ColumnTypeString Gets or sets the type of the column.

Google
Search WWW Search castleproject.org