Maps a standard column of the table.
Namespace: Castle.ActiveRecord
Assembly: Castle.ActiveRecord (in Castle.ActiveRecord.dll)
Version: 1.0.3.0
Syntax
| C# |
|---|
[SerializableAttribute] [AttributeUsageAttribute(AttributeTargets.Property)] public class PropertyAttribute : WithAccessAttribute |
Examples
In the following example, the column is also
called 'name', so you don't have to specify.
CopyC#
To map a column name, use
CopyC#
public class Blog : ActiveRecordBase { ... [Property] public int Name { get { return _name; } set { _name = value; } } |
[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
System..::Attribute
Castle.ActiveRecord..::WithAccessAttribute
Castle.ActiveRecord..::PropertyAttribute
Castle.ActiveRecord..::KeyPropertyAttribute
See Also
PropertyAttribute Members
Castle.ActiveRecord Namespace