Syntax

C#
[SerializableAttribute]
public class BelongsToAttribute

The type exposes the following members.

Public Constructors

  NameDescription
Public methodBelongsToAttributeBelongsToAttributeNewOverloaded.

Public Methods

  NameDescription
Public methodEquals
Returns a value that indicates whether this instance is equal to a specified object.
(Inherited from Attribute.)
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from Attribute.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsDefaultAttribute
When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.
(Inherited from Attribute.)
Public methodMatch
When overridden in a derived class, returns a value that indicates whether this instance equals a specified object.
(Inherited from Attribute.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)

Protected Methods

  NameDescription
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)

Public Properties

  NameDescription
Public propertyAccess
Gets or sets the access strategy for this property
(Inherited from WithAccessAttribute.)
Public propertyAccessString
Gets the access strategy string for NHibernate's mapping.
(Inherited from WithAccessAttribute.)
Public propertyCascade
Defines the cascading behavior of this association.
Public propertyColumn
Defines the column used by association (usually a foreign key)
Public propertyCompositeKeyColumns
Defines the Composite Key columns used by association (aka Natural Keys).
Public propertyCustomAccess
Gets or sets the custom access strategy
(Inherited from WithAccessAttribute.)
Public propertyFetch
Chooses between outer-join fetching or sequential select fetching.
Public propertyForeignKey
Gets and sets the name of the foreign key constraint generated for an association.
Public propertyInsert
Set to false to ignore this association when inserting entities of this ActiveRecord class.
Public propertyNotFoundBehaviour
Gets or sets the way broken relations are handled.
Public propertyNotNull
Indicates whether this association allows nulls or not.
Public propertyOuterJoin 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.
Public propertyPropertyRef
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.
Public propertyType
Defines the target type of the association. It's usually inferred from the property type.
Public propertyTypeId
When implemented in a derived class, gets a unique identifier for this Attribute.
(Inherited from Attribute.)
Public propertyUnique
Indicates whether this association is unique.
Public propertyUniqueKey
From NHibernate documentation: A unique-key attribute can be used to group columns in a single unit key constraint.
Public propertyUpdate
Set to false to ignore this association when updating entities of this ActiveRecord class.

See Also