In the process of upgrading to the latest version of NHibernate. As directed by the release notes, I have changed NHibernate.Expression namespace to NHibernate.Criterion. As a consequence wherever 'EqExpression' is used there is an error and the solution won't build!
Is there a directive or assembly reference I'm missing?
Here's a piece of code:
...
using NHibernate;
using NHibernate.Criterion;
...
ICriteria crit = session.CreateCriteria(typeof(Order));
crit.Add(new EqExpression("Customer", customer));
crit.SetFetchMode("Customer", FetchMode.Eager);
crit.SetResultTransformer(new NHibernate.Transform.DistinctRootEntityResultTransformer());
....
Thanks for your help.
Oskar
|