Syntax
| C# |
|---|
[SerializableAttribute] public class BelongsToAttribute |
The type exposes the following members.
Public Constructors
| Name | Description | |
|---|---|---|
| BelongsToAttributeBelongsToAttributeNew | 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.) | |
| Cascade |
Defines the cascading behavior of this association.
| |
| Column |
Defines the column used by association (usually a foreign key)
| |
| CompositeKeyColumns |
Defines the Composite Key columns used by association (aka Natural Keys).
| |
| CustomAccess |
Gets or sets the custom access strategy
(Inherited from WithAccessAttribute.) | |
| Fetch |
Chooses between outer-join fetching
or sequential select fetching.
| |
| ForeignKey |
Gets and sets the name of the foreign key constraint
generated for an association.
| |
| Insert |
Set to false to ignore this association when inserting entities of this ActiveRecord class.
| |
| NotFoundBehaviour |
Gets or sets the way broken relations are handled.
| |
| NotNull |
Indicates whether this association allows nulls or not.
| |
| OuterJoin | Obsolete.
Defines the outer join behavior of this association.
NHibernate has deprecated the outer-join attribute so this property is
marked obsolete - it now converts to and from the fetch value.
| |
| PropertyRef |
From NHibernate docs: The name of a property of the
associated class that is joined to the primary key
of this class. If not specified, the primary key of
the associated class is used.
| |
| Type |
Defines the target type of the association. It's usually inferred from the property type.
| |
| TypeId | When implemented in a derived class, gets a unique identifier for this Attribute. (Inherited from Attribute.) | |
| Unique |
Indicates whether this association 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 association when updating entities of this ActiveRecord class.
|
See Also
Castle.ActiveRecord Namespace