I'm trying to upgrade NQA to use NHibernate 1.0, and I run into an issue I'm not sure how to solve.
The test cases I've are failing because of:
NHibernate.QueryException : No type assigned to parameter 'p0': be sure to set types for named parameters.
The query is: from TestProject tp where tp.Id = :id
I'm creating a QueryParameters with no positional parameters and set The NamedParameters to a hash table with the key being "id" and the value being: TypedValue(NHibernateUtil.Int32,2)
Then I create QueryTranslator, call Compile() and then PrepareQueryCommand(), and then it bombs.
Any ideas?
|