Syntax
| C# |
|---|
[SerializableAttribute] public class PropertyAttribute |
The type exposes the following members.
Public Constructors
| Name | Description | |
|---|---|---|
| PropertyAttributePropertyAttributeNew | Overloaded. |
Public Methods
| Name | Description | |
|---|---|---|
| Equals | Returns a value that indicates whether this instance is equal to a specified object. (Inherited from Attribute.) | |
| GetHashCode | Returns the hash code for this instance. (Inherited from Attribute.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| IsDefaultAttribute | When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class. (Inherited from Attribute.) | |
| Match | When overridden in a derived class, returns a value that indicates whether this instance equals a specified object. (Inherited from Attribute.) | |
| ToString | (Inherited from Object.) |
Protected Methods
| Name | Description | |
|---|---|---|
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
Public Properties
| Name | Description | |
|---|---|---|
| Access |
Gets or sets the access strategy for this property
(Inherited from WithAccessAttribute.) | |
| AccessString |
Gets the access strategy string for NHibernate's mapping.
(Inherited from WithAccessAttribute.) | |
| Check |
From NHibernate documentation:
create an SQL check constraint on either column or table
| |
| Column |
Gets or sets the column name
| |
| ColumnType |
Gets or sets the type of the column.
| |
| CustomAccess |
Gets or sets the custom access strategy
(Inherited from WithAccessAttribute.) | |
| Formula |
Gets or sets the formula used to calculate this property
| |
| Index |
From NHibernate documentation:
specifies the name of a (multi-column) index
| |
| Insert |
Set to false to ignore this property when inserting entities of this ActiveRecord class.
| |
| Length |
Gets or sets the length of the property (for strings - nvarchar(50) )
| |
| NotNull |
Gets or sets a value indicating whether this property allow null.
| |
| SqlType |
From NHibernate documentation:
overrides the default column type
| |
| TypeId | When implemented in a derived class, gets a unique identifier for this Attribute. (Inherited from Attribute.) | |
| Unique |
Gets or sets a value indicating whether this PropertyAttribute is unique.
| |
| UniqueKey |
From NHibernate documentation:
A unique-key attribute can be used to group columns
in a single unit key constraint.
| |
| Update |
Set to false to ignore this property when updating entities of this ActiveRecord class.
|
See Also
Castle.ActiveRecord Namespace