A NHibernate persistent object (entity) type

Namespace:  NHibernate
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
<ObsoleteAttribute("use NHibernate.Entity instead")> _
Public Shared Function Association ( _
	persistentClass As Type _
) As IType
C#
[ObsoleteAttribute("use NHibernate.Entity instead")]
public static IType Association(
	Type persistentClass
)
Visual C++
[ObsoleteAttribute(L"use NHibernate.Entity instead")]
public:
static IType^ Association(
	Type^ persistentClass
)
JavaScript
NHibernate.NHibernateUtil.association = function(persistentClass);

Parameters

persistentClass
Type: System..::.Type
a mapped entity class

Return Value

See Also