Hi, i'm new to nhibernate and i'm experiencing this issue:
i've a mapping file with this kind of properties derived from formulas
Code:
<property name="TypeOfPerson" formula="CASE KIND WHEN 198 THEN 0 ELSE 999 END" update="false" insert="false"/>
<property name="LanguageCultureName" formula ="CASE NAZ WHEN 'I' THEN 'it-IT' ELSE 'en-GB' END" update="false" insert="false"/>
When I attempt to load entity by id it works as I would expected but when i try to load a list from a named query i receive this error: "value cannot be null. Parameter name: fieldName".
If i omit the formulas all work fine.