I have NHibernate 1.2.0GA. I have checked the source for 1.2.1, and can't find any changes relevant to this error.
I am trying to use .CreateSQLQuery and an AliasToBean transformer. The following code works for me:
Quote:
ISQLQuery qry = BusinessContext.Instance.Dao.CurrentSession.CreateSQLQuery("select getdate() as Prop1");
qry.AddScalar("Prop1", NHibernateUtil.Date);
qry.SetResultTransformer(NHibernate.Transform.Transformers.AliasToBean(typeof(Test1)));
IList list = qry.List();
However, from reading the documentation, I did not expect to have to need the .AddScalar() call. Did I mis-read the documentation, or is there an issue here, or... ?
Thanks!
--randy