Maps a one to many association.

Namespace: Castle.ActiveRecord
Assembly:  Castle.ActiveRecord (in Castle.ActiveRecord.dll)
Version: 1.0.3.0

Syntax

Examples

CopyC#
public class Blog : ActiveRecordBase
{
    ...

    [HasMany(typeof(Post), RelationType.Bag, ColumnKey="Posts", Table="Posts")]
    public IList Posts
    {
        get { return _posts; }
        set { _posts = value; }
    }

Inheritance Hierarchy

See Also