The ModelInspector doesn’t seem to provide the means to define Filter definitions . Any ideas/Workarounds?
I need to generate the following with mappings by code:
<filter-def name="filterName" use-many-to-one="false">
<filter-param name="filterParamName" type="Int32"/>
</filter-def>
I was able to achieve that using NHibernate.Cfg.Configuration:
then define the filter in entity mapping:
and then use it as follows:
I hope you;ll find this useful.