I have a filter like this:
<filter name="partnerIdFilter" condition="partner_id IN (:partnerId)"/>
and the partnerId
parameter is defined like this:
<filter-def name="partnerIdFilter">
<filter-param name="partnerId" type="int[]"/>
</filter-def>
and the filter is enabled like this:
currentSession.EnableFilter("partnerIdFilter").SetParameterList("partnerId", specification.GetFilterValues());
But I get an NHibernate exception Undefined filter parameter [partnerId]
How can I fix this? Another filter in the same mapping file is working without any problems.