Maps a standard column of the table.

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

Syntax

Examples

In the following example, the column is also called 'name', so you don't have to specify.
CopyC#
public class Blog : ActiveRecordBase
{
    ...

    [Property]
    public int Name
    {
        get { return _name; }
        set { _name = value; }
    }
To map a column name, use
CopyC#
[Property("blog_name")]
public int Name
{
    get { return _name; }
    set { _name = value; }
}

Inheritance Hierarchy

System..::Object
  System..::Attribute
    Castle.ActiveRecord..::WithAccessAttribute
      Castle.ActiveRecord..::PropertyAttribute
        Castle.ActiveRecord..::KeyPropertyAttribute

See Also