Syntax

C#
[SerializableAttribute]
public abstract class RelationAttribute

The type exposes the following members.

Protected Constructors

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 propertyBatchSize
From NHibernate documentation: Specify a "batch size" for batch fetching of collections.
Public propertyCache
Gets or sets the cache strategy to use for this property
(Inherited from BaseAttribute.)
Public propertyCascade
Gets or sets the cascade options for this RelationAttribute
Public propertyCustomAccess
Gets or sets the custom access strategy
(Inherited from WithAccessAttribute.)
Public propertyElement
Use for simple types.
Public propertyIndex
Only used with maps or lists
Public propertyIndexType
Only used with maps
Public propertyInverse
Gets or sets a value indicating whether this RelationAttribute is inverse.
Public propertyLazy
Gets or sets a value indicating whether this RelationAttribute is lazy.
Public propertyMapType
Gets or sets the type of the map.
Public propertyNotFoundBehaviour
Gets or sets the way broken relations are handled.
Public propertyOrderBy
Gets or sets the order by clause for this relation. This is a SQL order, not HQL.
Public propertyRelationType
Gets or sets the type of the relation.
Public propertySchema
Gets or sets the schema for this relation (dbo., etc)
Public propertySort
Only used with sets. The value can be unsorted, natural and the name of a class implementing System.Collections.IComparer
Public propertyTable
Gets or sets the table for this relation
Public propertyTypeId
When implemented in a derived class, gets a unique identifier for this Attribute.
(Inherited from Attribute.)
Public propertyWhere
Gets or sets the where clause for this relation

See Also