Home

Castle Stronghold

HiloAttribute API Document

Used when a constraint requires a hilo algorithm

Example


public class Blog : ActiveRecordBase
{
    ...
    
    [HasManyAndBelongs/HasMany,
    CollectionID(CollectionIDAttribute.HiLo),
    Hilo]
    public int Id
    {
        get { return _id; }
        set { _id = value; }
    }

Constructors

HiloAttribute()

Initializes a new instance of the Castle.ActiveRecord.HiloAttribute class.

HiloAttribute(String table, String column, Int32 maxlo)

Initializes a new instance of the Castle.ActiveRecord.HiloAttribute class.

ParameterDescription
table The table.
column The column.
maxlo The maxlo.

Properties

NameTypeDescription
ColumnString Gets or sets the column name
TableString Gets or sets the table name
MaxLoInt32 Gets or sets the max low value

Google
Search WWW Search castleproject.org