NHibernate: parámetro en fórmula

I have folling property in my mapping:

<id name="Id" column="ID" type="int" unsaved-value="0">
  <generator class="native" />
</id>
<property name="HaveData" formula="(dbo.fnGetData(Id, :dateTime))" type="bool" update="false" insert="false"/>

I would like to do a session.CreateCriteria and set the parameter ":dateTime". I've tried to work with filters, but without success.

Is it this possible to have parameter in formula and how?

Muchas gracias!

preguntado el 08 de noviembre de 11 a las 11:11

1 Respuestas

What did not success in using filters? Here you have a samples of how to use filters:

http://ayende.com/blog/3993/nhibernate-filters

http://ayende.com/blog/1954/localizing-nhibernate-contextual-parameters

respondido 08 nov., 11:17

"Please note that this is no longer supported behavior in NHibernate 2.1 and up" => ayende.com/blog/1954/… - Dani

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.