Page 1 of 1

<Any> Association Support

Posted: Sun 27 May 2012 09:48
by alireza_eslampanah
In the Nhibernate Mode, there is <Any> Association Feature that Doesn't Supported By Entity Developer, And Is a Important Feature.

Mapping For Any Association:
<class name='NHibernate.Any.Rule, NHibernate.Any' table='`Rule`'>

<id name='Id'>

<generator class='identity'/>

</id>

<any name='AppliesTo' meta-type='System.String' id-type='System.Int32'>

<meta-value class='NHibernate.Any.Account, NHibernate.Any' value='ACC'/>

<meta-value class='NHibernate.Any.Customer, NHibernate.Any' value='CUST'/>

<column name='AppliesToType'/>

<column name='AppliesToId'/>

</any>

</class>

Re: <Any> Association Support

Posted: Tue 29 May 2012 08:17
by Shalex
The <Any> Association feature is not supported at the moment. We will investigate the question and post here about the results as soon as possible.