Hi,

We have recently migrated from NH 1.2 to NH 4.0.4. 

Earlier while setting the HQL parameters we could do it by:

1. .SetParameter(Name, Value, Type) OR
2. .SetParameter(Name, Value)

The HQL Construct is as 

 FROM TestDO _TestDO WHERE Code = :Code AND Category = :category ORDER BY 
Code
IQuery.List<T>()

If we use the second option, where we do not specify the type, then the 
bind variables are always substituted with NULL.  -It works well when we 
specify the Type (the first option)

It also works if we use nhibernateutil.guesstype(typeof(value))

Are we missing anything here.

Regards,

Anil



-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to