Hi! Map:

  <class name="ClassStaff" table="Staff" lazy="true">
    <id name="ID">
      <generator class="native" />
    </id>
    <property name="Name" column ="Name"/>
    <property name="Salary" column ="Salary"/>
    <property name="SalaryAdd" formula="(select SmthFunc(ID) from
Staff s where (s.ID=ID))"/>
  </class>

works fine. But really SmthFunc is SmthFunc(ID, ExternalParameter). I
found 
http://ayende.com/Blog/archive/2006/12/26/LocalizingNHibernateContextualParameters.aspx.
But after http://www.mail-archive.com/[email protected]/msg14448.html
I understood that it is impossible?

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to