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.Field)] public class FieldAttribute : WithAccessAttribute |
Examples
In the following example, the column is also
called 'name', so you don't have to specify.
CopyC#
public class Blog : ActiveRecordBase { [Field] string name; |
Inheritance Hierarchy
System..::Object
System..::Attribute
Castle.ActiveRecord..::WithAccessAttribute
Castle.ActiveRecord..::FieldAttribute
System..::Attribute
Castle.ActiveRecord..::WithAccessAttribute
Castle.ActiveRecord..::FieldAttribute
See Also
FieldAttribute Members
Castle.ActiveRecord Namespace