Syntax
| C# |
|---|
[SerializableAttribute] public class OneToOneAttribute |
The type exposes the following members.
Public Constructors
| Name | Description | |
|---|---|---|
| OneToOneAttributeOneToOneAttributeNew |
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 |
From NHibernate docs: specifies which operations should be
cascaded from the parent object to the associated object.
| |
| Constrained |
From NHibernate docs: specifies that a foreign key
constraint on the primary key of the mapped table
references the table of the associated class.
This option affects the order in which Save() and
Delete() are cascaded (and is also used by the
schema export tool).
| |
| CustomAccess |
Gets or sets the custom access strategy
(Inherited from WithAccessAttribute.) | |
| Fetch |
From NHibernate docs: Chooses between outer-join fetching
or sequential select fetching.
| |
| ForeignKey |
Gets or sets the name of the foreign key constraint generated for
an association. NHibernate will only use the ForeignKey name one
the inherited class and Constrained = true.
| |
| MapType |
Allows one to reference a different type
than the property type
| |
| 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.
| |
| TypeId | When implemented in a derived class, gets a unique identifier for this Attribute. (Inherited from Attribute.) |
See Also
Castle.ActiveRecord Namespace