Syntax
| C# |
|---|
[SerializableAttribute] public abstract class RelationAttribute |
The type exposes the following members.
Protected Constructors
| Name | Description | |
|---|---|---|
| RelationAttributeRelationAttributeNew |
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.) | |
| BatchSize |
From NHibernate documentation:
Specify a "batch size" for batch fetching of collections.
| |
| Cache |
Gets or sets the cache strategy to use for this property
(Inherited from BaseAttribute.) | |
| Cascade |
Gets or sets the cascade options for this RelationAttribute | |
| CustomAccess |
Gets or sets the custom access strategy
(Inherited from WithAccessAttribute.) | |
| Element |
Use for simple types.
| |
| Index |
Only used with maps or lists
| |
| IndexType |
Only used with maps
| |
| Inverse |
Gets or sets a value indicating whether this RelationAttribute is inverse.
| |
| Lazy |
Gets or sets a value indicating whether this RelationAttribute is lazy.
| |
| MapType |
Gets or sets the type of the map.
| |
| NotFoundBehaviour |
Gets or sets the way broken relations are handled.
| |
| OrderBy |
Gets or sets the order by clause for this relation. This is a SQL order, not HQL.
| |
| RelationType |
Gets or sets the type of the relation.
| |
| Schema |
Gets or sets the schema for this relation (dbo., etc)
| |
| Sort |
Only used with sets. The value can be unsorted, natural and the name of a class implementing System.Collections.IComparer | |
| Table |
Gets or sets the table for this relation
| |
| TypeId | When implemented in a derived class, gets a unique identifier for this Attribute. (Inherited from Attribute.) | |
| Where |
Gets or sets the where clause for this relation
|
See Also
Castle.ActiveRecord Namespace